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

[fix] Migration from boost 1.55 to 1.56 or later #5

Open
YuehChuan opened this issue May 17, 2019 · 1 comment
Open

[fix] Migration from boost 1.55 to 1.56 or later #5

YuehChuan opened this issue May 17, 2019 · 1 comment

Comments

@YuehChuan
Copy link

I'm not sure wheter it is appropriate to open a pull request, so ticket the workaround here.
issue about explicitly converting the optional to bool

issue:

 error: cannot convert ‘boost::optional<boost::property_tree::basic_ptree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&>’ to ‘bool’ in return
   return opt_loc_pt_;

the fix:
https://github.com/YuehChuan/gpu_computing_in_robotics/blob/master/tutorial/lesson_16/src/data_model.cpp#L176

ref:
https://stackoverflow.com/questions/38648826/boostoptional-returning-a-bool-value-doesnt-always-work

@JanuszBedkowski
Copy link
Owner

JanuszBedkowski commented May 18, 2019 via email

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

2 participants