I'm working with the boost geometry library and i have read in the documentation that i should prefer using boost::geometry::set<0>(point1, 1.0);
instead of point1.set<0>(1.0);
Same with the get method: bg::get<0>(point1)
instead of point1.get<0>();
Can anyone explain why i should do so? The documentation is here (Examples; on the bottom of the page): boost point documentation