Menu

#539 std::any and OWLNext's #define _RTTI (duplicate of [bugs:#483])

unspecified
closed
nobody
Duplicate (1)
1
2022-08-10
2022-08-10
No

When using std::any with Visual Studio 2022 and OWLNext 6.44, there is a problem with the symbol _RTTI which is #defined by a couple of OWLNext files (see defs.h,gnuc.h,msc.h)
but is also the name of the field of std::any::Storage structure/object.

My workaround so far:
Add#undef _RTTI before #include <any>

Related

Bugs: #483

Discussion

  • Vidar Hasfjord

    Vidar Hasfjord - 2022-08-10
    • labels: std::lib --> Duplicate
    • summary: std::any and OWLNext's #define _RTTI --> std::any and OWLNext's #define _RTTI (duplicate of [bugs:#483])
    • status: open --> closed
     

    Related

    Bugs: #483

  • Vidar Hasfjord

    Vidar Hasfjord - 2022-08-10

    Hi Alain,

    This is a duplicate ticket of a known issue. See "Macro naming conflicts with C++ standard" [bugs:#483]. Please continue discussion of the issue there. Also see [discussion:1899709664] for my proposed solution to the particular issue (_RTTI) and the broader issue (name conflicts with the C++ standard), already implemented in Owlet.

    I have hence closed this ticket.

    Tip: When searching for known issues, make sure you put quotes around important terms, e.g. "_RTTI".

     

    Related

    Bugs: #483
    Discussion: 1899709664


Log in to post a comment.