-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specializing toml::from for Eigen types #159
Comments
Sorry for the late response and thank you for reporting the issue. I reproduced the problem with Eigen 3.3.7 in my local environment. I will look into it. I will comment as soon as I figure out the reason. |
It seems that, as you suggested, it is because of the constructor of I think Eigen has it to make I'm now trying to add precedence over the existing conversion methods, such as |
I make But, in your example, you defined |
The following code will complain about toml::get being ambiguous.
The cause appears to be that Eigen::VectorXd believes it is constructible from a toml::value (static_assert is true). But in reality it is not.
I am not a complete stranger to template programming but, I can't figure out why Eigen::Vector thinks it is constructible
from a toml::value. I speculate it may be because Eigen tries to allow initializing from things that look like they are iterable?
Is there a workaround, or am i missing something else entirely?
Thank you for your time!
The text was updated successfully, but these errors were encountered: