Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » AssertMoveable fails to work?
AssertMoveable fails to work? [message #59670] Mon, 27 February 2023 22:47
piotr5 is currently offline  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.*?
Previous Topic: Unicode from file
Next Topic: odd behavior with SaveFile
Goto Forum:
  


Current Time: Thu Apr 25 16:32:02 CEST 2024

Total time taken to generate the page: 0.02046 seconds