Ticket #2327: boost_config2.patch

File boost_config2.patch, 1.6 KB (added by Nicola Musatti, 14 years ago)
  • compiler/codegear.hpp

     
    4040   // we shouldn't really need this - but too many things choke
    4141   // without it, this needs more investigation:
    4242#  define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
     43#  define BOOST_NO_TYPENAME_WITH_CTOR    // Cannot use typename keyword when making temporaries of a dependant type
     44#  define BOOST_NO_NESTED_FRIENDSHIP     // TC1 gives nested classes access rights as any other member
    4345
    44 //  Still need tests writing
    45 //  #  define BOOST_NO_TYPENAME_WITH_CTOR    // Cannot use typename keyword when making temporaries of a dependant type
    46 //  #  define BOOST_NO_NESTED_FRIENDSHIP     // TC1 gives nested classes access rights as any other member
     46// Temporary hack, until specific MPL preprocessed headers are generated
     47#  define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
    4748
    4849#  ifdef NDEBUG
    4950      // fix broken <cstring> so that Boost.test works:
  • suffix.hpp

     
    442442#  define BOOST_DEDUCED_TYPENAME
    443443#endif
    444444
     445#ifndef BOOST_NO_TYPENAME_WITH_CTOR
     446#  define BOOST_CTOR_TYPENAME typename
     447#else
     448#  define BOOST_CTOR_TYPENAME
     449#endif
     450
    445451// long long workaround ------------------------------------------//
    446452// On gcc (and maybe other compilers?) long long is alway supported
    447453// but it's use may generate either warnings (with -ansi), or errors