mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-19 23:32:17 +02:00
Fix hard compilation error with nested fusion::cons.
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
#include <boost/lambda/lambda.hpp>
|
||||
#include <boost/fusion/algorithm/iteration/for_each.hpp>
|
||||
#include <boost/fusion/algorithm/transformation/filter_if.hpp>
|
||||
#include <boost/fusion/algorithm/transformation/push_front.hpp>
|
||||
#include <boost/fusion/sequence/io/out.hpp>
|
||||
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
@ -83,6 +84,12 @@ main()
|
||||
BOOST_TEST((*begin(tie) == 3));
|
||||
}
|
||||
|
||||
{
|
||||
// This used to trigger a hard compilation error:
|
||||
cons<cons<int> > xs;
|
||||
begin(push_front(xs, 3));
|
||||
}
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user