Menu

C++17 fixes

paul
2017-03-30
2019-11-06
  • paul

    paul - 2017-03-30

    Hello,

    C++17 eliminates ios aliases seek_dir and open_mode. In files objstrm.h and objstrm.cpp, simply search/replace with seekdir and openmode respectively. I found this using the compiler option /std:c++latest with VS2017.

    Thanks,
    Paul

     
  • Vidar Hasfjord

    Vidar Hasfjord - 2017-03-30

    Hi Paul, thanks for reporting this issue. I have now updated the trunk [r3793].

     

    Related

    Commit: [r3793]

  • PatBir

    PatBir - 2019-11-06

    Hi, i've just try to compile my project with compiler option /std:c++17 using the Owlnext 6.446-r4578 with vs2019. I want to test the new capability of the c++/WinRT

    But before, I have 2 majors errors within the compilation process:

    1) the same which paul tells above:
    seek_dir in objstrm.h at two lines 408 and 497.
    I've changed it to seekdir
    => OK

    2) std:auto_ptr<> in notetab.h, two lines 290 and 311.
    I've tested it with std::unique_ptr<>
    => OK

    Can you take a look to change eventually the code ?
    Thanks
    Patrice

     
  • Vidar Hasfjord

    Vidar Hasfjord - 2019-11-06

    Hi Patrice,

    Can you take a look to change eventually the code [to use /std:c++17]?

    The code on the trunk (OWLNext 7) has been updated for C++17 compliance (see this post). There is no plan to merge this into the 6.44 branch, due to the need to be backwards compatible with older compilers. On the other hand, the trunk and Owlet, my experimental branch, will track the latest C++ standard.

     

Anonymous
Anonymous

Add attachments
Cancel