Menu

#30 Support gcc -std=c++20

open
nobody
None
5
2022-08-21
2022-07-11
No

With the std=c++20 option, gcc would not compile.
This is due to a few constructors in some templates that are written as Foo<t> instead of just Foo. This should not affect
I have attached a tiny diff file that shows the necessary patch to apply to fix this.</t>

1 Attachments

Related

Patches: #30

Discussion

  • César Douady

    César Douady - 2022-07-11

    Oups, I meant this should not afffect other compilers as this is the standard way to declare constructors.

     
  • Barry Alan Scott

    Thanks. I'll run it pass my tests

     
  • Barry Alan Scott

    patch does not like the diff.
    Can you create the diff with svn diff please?
    Or if you doing this outside of svn then use diff -u?
    The diff should look like this format:

    $ diff -u README.txt{~,}
    --- README.txt~ 2022-08-07 09:54:24.133626013 +0100
    +++ README.txt  2022-08-07 09:54:24.133626013 +0100
    @@ -2,4 +2,6 @@
    
     Add support for building against python 3.11 alpha 4.
    
    +Foo
    +
     This Version 7.1.6 with README updates
    
     

    Last edit: Barry Alan Scott 2022-08-07
  • Barry Alan Scott

    I'm updating build to allow testing against each standard.
    Your patch is good for c++11 to c++20 with GCC.
    I see some issues with c++98 and c++03 but I happy to not support that far back in time.

    I'll go on to test with MSVC and xcode/llvm next.

    I think I will not patch python 2 files are these are, I hope, at this point for legacy systems that will not need the patch and may be using very old compilers.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.