Closed ghost closed 9 years ago
Hi, and thanks for your report!
Apparently, GLIBCXX is not monotonic, i.e. minor bugfix upgrades for older versions still get bumped to current date.
Indeed, the only reliable way to detect libstdc++ features is to craft and run feature tests during configuration stage (but the library doesn't have one as it is header only).
It's unclear to me what the right solution is here...
Eggs.Variant expects a standard conforming C++11 compiler. If you don't provide one, it will make its educated guesses and try to adapt. You can overrule any of those guesses, right or wrong, by setting the corresponding config macro, so in this case you could just add -DEGGS_CXX11_STD_HAS_IS_TRIVIALLY_COPYABLE=0
.
I will most likely simply drop trivially-copyable support for gcc for another round.
I'm happy with the workaround. Thanks!
Addressed by af95784b6485e4739cef9bdbba3ade216645f464
Hi!
In my Debian Sid machine, GCC 4.9,
eggs::variant
fails to compile. I get the following error:The problem is, I reckon, that
__GLIBCXX__ == 20150826
, andis_trivially_copyable
is detected via the following preprocessor directives:Apparently,
__GLIBCXX__
is not monotonic, i.e. minor bugfix upgrades for older versions still get bumped to current date. It's unclear to me what the right solution is here...Further information:
Thanks a lot!