Is there a support for C ++ 17 in VisualGDB?

Sysprogs forums Forums VisualGDB Is there a support for C ++ 17 in VisualGDB?

This topic contains 19 replies, has 4 voices, and was last updated by  support 1 week, 6 days ago.

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #20904

    Ophidian14
    Participant

    What exactly is this doing behind the scenes?  Have I sacrificed speed in accuracy in any way by choosing this setting?

    #20905

    support
    Keymaster

    Hi,

    It will basically restrict discovery of references to the main source file only. E.g. if you have a template function inside the main file, but it’s instantiated somewhere in a header file, that instantiation will be ignored and the function body won’t be colored properly (that only affects template functions and only if they are not used inside the main file itself).

    It might also interfere with the ‘find all references’ functionality for translation unit-scoped entities (e.g. static functions), that are declared inside the main file, but used from headers (this won’t affect finding references for regular functions/classes, as it involves scanning the entire project using a different mechanism that is not affected by this setting).

    #20906

    Ophidian14
    Participant

    Hmm.  Okay, thanks for explaining that and I’m going to experiment with things on this setting and see how it goes.

    #20908

    aronrubin
    Participant

    In order to get c++17 features for STL I had to add a command line switch in the settings in addition to the normal set(CMAKE_CXX_STANDARD 17) directive in the cmake file.

     

     

    Attachments:
    You must be logged in to view attached files.
    #20912

    support
    Keymaster

    Hi,

    Normally it should work automatically if you are using the latest VisualGDB 5.4 Preview 3, however setting it manually is a reasonable workaround if it doesn’t.

    If you can confirm that the setting is not automatically picked up with the latest VisualGDB, please feel free to post a repro project here and we will investigate/fix this.

Viewing 5 posts - 16 through 20 (of 20 total)

You must be logged in to reply to this topic.