Home » U++ Library support » U++ Core » AssertMoveable fails to work?
AssertMoveable fails to work? [message #59670] |
Mon, 27 February 2023 22:47 |
piotr5
Messages: 107 Registered: November 2005
|
Experienced Member |
|
|
I noticed in Topt.h in the AssertMoveable definitions
#if defined(COMPILER_MSC) || defined(COMPILER_GCC) && (__GNUC__ < 4 || __GNUC_MINOR__ < 1)
and what it does actually do is that the correct branch is visited whenever minor version of gcc is bigger than 0? this causes problems when testing a new release with minor version 0. just try
c++ -E -dD Core/Core.h
and you'll see that gcc-12.2.1 is using the definition with templated AssertMoveable whereas gcc-13.0 is using the version with the AssertMoveable0 which simply doesn't work...
#if defined(COMPILER_MSC) || defined(COMPILER_GCC) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1))
is what I use instead. maybe remove the last part completely and drop compatibility with gcc-4.0.*?
|
|
|
Goto Forum:
Current Time: Tue Apr 29 18:53:50 CEST 2025
Total time taken to generate the page: 0.00908 seconds
|