]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/phoenix/test/regression/bug6268.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / phoenix / test / regression / bug6268.cpp
1 /*=============================================================================
2 Copyright (c) 2005-2007 Dan Marsden
3 Copyright (c) 2005-2007 Joel de Guzman
4 Copyright (c) 2014 John Fletcher
5
6 Distributed under the Boost Software License, Version 1.0. (See accompanying
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 ==============================================================================*/
9
10 #include <boost/fusion/sequence/comparison.hpp>
11 #include <boost/fusion/sequence/sequence_facade.hpp>
12 #include <boost/phoenix/core.hpp>
13 #include <boost/phoenix/operator/comparison.hpp>
14
15 struct foo : boost::fusion::sequence_facade<foo, boost::fusion::random_access_traversal_tag>
16 {
17 // Rest of the sequence_facade extension mechanism code omitted,
18 // as it is not needed to reproduce the error
19
20 foo() : x(), y() {}
21
22 int x;
23 int y;
24 };
25
26 int main()
27 {
28 (void)(boost::phoenix::arg_names::arg1 < foo());
29 }