| 1 | #include <tuple>
|
|---|
| 2 |
|
|---|
| 3 | #if 1 // COMPILERROR_1
|
|---|
| 4 | # include <boost/fusion/adapted/boost_tuple.hpp>
|
|---|
| 5 | # include <boost/fusion/adapted/std_tuple.hpp>
|
|---|
| 6 | #else // COMPILERROR_2
|
|---|
| 7 | # include <boost/fusion/adapted/std_tuple.hpp>
|
|---|
| 8 | # include <boost/fusion/adapted/boost_tuple.hpp>
|
|---|
| 9 | #endif
|
|---|
| 10 |
|
|---|
| 11 | #include <boost/fusion/include/for_each.hpp>
|
|---|
| 12 |
|
|---|
| 13 | struct F { template <typename T> void operator()(T) const {} };
|
|---|
| 14 |
|
|---|
| 15 | int main()
|
|---|
| 16 | {
|
|---|
| 17 | boost::fusion::for_each(std::make_tuple(1), F()); // COMPILERROR_1
|
|---|
| 18 | boost::fusion::for_each(boost::make_tuple(1), F()); // COMPILERROR_2
|
|---|
| 19 | }
|
|---|