Author Topic: Change to C++17?  (Read 17182 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6236
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Change to C++17?
« Reply #15 on: September 17, 2026, 02:34:38 pm »
I'm OK with C++17.

BTW: about the code repo, can we switch to git?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1926
Re: Change to C++17?
« Reply #16 on: September 17, 2026, 07:56:14 pm »
Would tickets be moved also?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6236
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Change to C++17?
« Reply #17 on: September 19, 2026, 03:57:25 am »
Would tickets be moved also?

If the git means github, then I found that there are some project which can import sourceforge ticket to github, something like: Ajnasz/sf2gh: Move sourceforge tickets to github or cmungall/gosf2github: migrates tickets to GH from SF.

I don't want to use SVN, because SVN can't let me create a serial of patches.  :(
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 606
  • L'ami de l'homme. The friend of man.
    • LETARTARE
Re: Change to C++17?
« Reply #18 on: September 21, 2026, 10:03:05 am »
I use 'https://codeberg.org/' which has a translation service : 'https://translate.codeberg.org/'
CB-14037, plugins-sdk-2.26.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5584
Re: Change to C++17?
« Reply #19 on: September 23, 2026, 07:09:18 pm »
are there any objections to switch to c++20 or even c++23 ?

I think the winlibs gcc ports for windows also nicely support it, because I build CB (and wx) with it, and that goes fine.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 866
Re: Change to C++17?
« Reply #20 on: September 24, 2026, 09:23:51 am »
I usually build CB with gnu++20 (even tests with gnu++26). No problems, except a few warnings concerning obsolete things which are not there with c++17. I have seen that the generated code is a little bit bigger.
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.3, Msys2 Compilers 16.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).