$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] Exception visibility and non-GCC compilers
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-04-30 14:02:58
Exceptions types need to be exported so that shared libraries work
correctly.
Currently, the only code I see that does this is in Boost.Exception :
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility push (default)
# endif
#endif
... some exception type being declared or defined
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility pop
# endif
#endif
But shouldn't we have macros to make this work with other compilers too?
I'm not sure all unix-like compilers pretend to be GCC 4.1+.