mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-06 00:04:35 +02:00
invert incorrect Borland check
[SVN r25963]
This commit is contained in:
@@ -64,14 +64,14 @@ int main()
|
|||||||
std::vector<int> v;
|
std::vector<int> v;
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, >= 0x561)
|
#if BOOST_WORKAROUND(__BORLANDC__, >= 0x561)
|
||||||
mpl::for_each<numbers>(
|
|
||||||
boost::bind(&std::vector<int>::push_back, &v, _1)
|
|
||||||
);
|
|
||||||
#else
|
|
||||||
void (std::vector<int>::* push_back)(int const&) = &std::vector<int>::push_back;
|
void (std::vector<int>::* push_back)(int const&) = &std::vector<int>::push_back;
|
||||||
mpl::for_each<numbers>(
|
mpl::for_each<numbers>(
|
||||||
boost::bind(push_back, &v, _1)
|
boost::bind(push_back, &v, _1)
|
||||||
);
|
);
|
||||||
|
#else
|
||||||
|
mpl::for_each<numbers>(
|
||||||
|
boost::bind(&std::vector<int>::push_back, &v, _1)
|
||||||
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mpl::for_each< numbers >(value_printer(std::cout));
|
mpl::for_each< numbers >(value_printer(std::cout));
|
||||||
|
Reference in New Issue
Block a user