Ticket #1305: parameter_libs071007.diff

File parameter_libs071007.diff, 1.5 KB (added by Nicola Musatti, 15 years ago)
  • test/preprocessor.cpp

     
    453453      , name = S("foo")
    454454    );
    455455
    456 #ifndef BOOST_NO_SFINAE
     456#if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x591))
    457457    assert(sfinae("foo") == 1);
    458458    assert(sfinae(1) == 0);
    459459
  • test/sfinae.cpp

     
    99#include <string>
    1010#include <boost/type_traits/is_convertible.hpp>
    1111
    12 #ifndef BOOST_NO_SFINAE
     12#if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x591))
    1313# include <boost/utility/enable_if.hpp>
    1414# include <boost/type_traits/is_same.hpp>
    1515#endif
     
    7070      f_impl(args(a0, a1));
    7171  }
    7272
    73 #ifndef BOOST_NO_SFINAE
     73#if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x591))
    7474  // On compilers that actually support SFINAE, add another overload
    7575  // that is an equally good match and can only be in the overload set
    7676  // when the others are not.  This tests that the SFINAE is actually
     
    9696    f("foo", 3.f);
    9797    f(value = 3.f, name = "foo");
    9898
    99 #ifndef BOOST_NO_SFINAE
     99#if ! defined(BOOST_NO_SFINAE) && ! BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x591))
    100100    BOOST_TEST(f(3, 4) == 0);
    101101#endif
    102102    return boost::report_errors();