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
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_;
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:
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