Skip to content

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

@YuehChuan

Description

@YuehChuan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions