workaround for a problem of VC7.1 with using decls of template memfuns from a private base

[SVN r22782]
This commit is contained in:
Joaquín M. López Muñoz
2004-05-11 06:28:58 +00:00
parent faffe39d53
commit 8191680f63

View File

@@ -27,10 +27,14 @@
/* GCC does not correctly support in-class using declarations for template
* functions. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9810
* MSVC 7.1 seems to have a similar problem, though the conditions in which
* the error happens are not that simple. I have yet to isolate this
* into a snippet suitable for bug reporting.
*/
#if BOOST_WORKAROUND(__GNUC__, <3)||\
BOOST_WORKAROUND(__GNUC__,==3)&&(__GNUC_MINOR__<4)
BOOST_WORKAROUND(__GNUC__,==3)&&(__GNUC_MINOR__<4)||\
BOOST_WORKAROUND(BOOST_MSVC,==1310)
#define BOOST_MULTI_INDEX_PRIVATE_IF_USING_DECL_FOR_TEMPL_FUNCTIONS public
#else
#define BOOST_MULTI_INDEX_PRIVATE_IF_USING_DECL_FOR_TEMPL_FUNCTIONS private