CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2002
    Posts
    756

    Downgrading C++ standard

    Hi, ALL,
    On my machine I have gcc 5.4 which defaults to C++11.
    I tried to submit a pull request to one of the open-source projects which on Travis CI is using gcc 4.6.3, which default to C++98.

    And so the compilation failed with:

    error: cannot pass objects of non-trivially-copyable type ‘’ through ‘...’
    Will I be able to simply downgrade the standard by using:

    Code:
    CXXFLAGS=-std=c++98 ../configure && make
    or I will have to re-install older version of gcc? Or maybe there is another solution?

    Thank you.

  2. #2
    Join Date
    Nov 2018
    Posts
    121

    Re: Downgrading C++ standard

    Yes, you should be able to do that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured