Skip to content
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

Compile error, VS 2017 Boost 1.69 property_tree equal_range #37

Open
BobNagy opened this issue Jan 19, 2019 · 1 comment
Open

Compile error, VS 2017 Boost 1.69 property_tree equal_range #37

BobNagy opened this issue Jan 19, 2019 · 1 comment

Comments

@BobNagy
Copy link

BobNagy commented Jan 19, 2019

I am using VS 2017 15.9.5, Boost 1.69.0.

Code that compiles and works correctly using VS 2015 now causes a compile error with VS 2017.
Unable to find resolution or workaround.

The error is this :

boost\property_tree\detail\ptree_implementation.hpp(500): error C2440: '': cannot convert from '_Ty1' to 'boost::property_tree::basic_ptree<std::wstring,std::wstring,std::less>::assoc_iterator'
with
[
_Ty1=boost::multi_index::detail::bidir_node_iterator<boost::multi_index::detail::ordered_index_node<boost::multi_index::detail::null_augment_policy,boost::multi_index::detail::index_node_base<std::pair<const std::wstring,boost::property_tree::basic_ptree<std::wstring,std::wstring,std::lessstd::wstring>>,std::allocator<std::pair<const std::wstring,boost::property_tree::basic_ptree<std::wstring,std::wstring,std::lessstd::wstring>>>>>>
]
and
[
Key=std::wstring
]
boost\property_tree\detail\ptree_implementation.hpp(500): note: No constructor could take the source type, or constructor overload resolution was ambiguous (compiling source file BPropertyTree.cpp)

@BobNagy
Copy link
Author

BobNagy commented Jan 19, 2019

Also, this error only happens if the call to equal_range is inside a lambda.
If the call is inside a member function, there is no error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant