awulkiew / graphical-debugging

Graphical Debugging extension for Visual Studio
MIT License
150 stars 24 forks source link

About boost::segment type on VS2019 #52

Closed Choy-Mutao closed 1 year ago

Choy-Mutao commented 2 years ago

Its a wonderful application for Graphics programmer, thanks a lot for ur given; is there no support boost::segment type on VS2019?

awulkiew commented 2 years ago

If by boost::segment you mean boost::geometry::model::segment then yes, they should work. User-defined segments are supported as well: https://github.com/awulkiew/graphical-debugging/blob/master/examples/cpp.xml#L131

Choy-Mutao commented 1 year ago

I'v tried some ways to show boost::geometry::model::segment again, however i failed;

        boost::geometry::model::segment<boost::geometry::model::point<double, 2, boost::geometry::cs::cartesian>> boost_segment;
        boost::geometry::model::linestring<boost::geometry::model::point<double, 2, boost::geometry::cs::cartesian>> boost_linestring;
        bg::set<0, 0>(boost_segment, 1.0);
        bg::set<0, 1>(boost_segment, 2.0);
        bg::set<1, 0>(boost_segment, 3.0);
        bg::set<1, 1>(boost_segment, 4.0);

        bg::append(boost_linestring, BoostPoint(0.0, 0.0));
        bg::append(boost_linestring, BoostPoint(1.0, 0.0));
        bg::append(boost_linestring, BoostPoint(1.0, 2.0));

On VS2019, except boost::geometry::model::segment, other is normal;

And my VS info is


Microsoft Visual Studio Enterprise 2019
Version 16.11.21
VisualStudio.16.Release / 16.11.21 + 33027.164
Microsoft.NET Framework
Version 4.8.09032
awulkiew commented 1 year ago

Fixed in v0.34.