bug6268.cpp 970 B

1234567891011121314151617181920212223242526272829
  1. /*=============================================================================
  2. Copyright (c) 2005-2007 Dan Marsden
  3. Copyright (c) 2005-2007 Joel de Guzman
  4. Copyright (c) 2014 John Fletcher
  5. Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. ==============================================================================*/
  8. #include <boost/fusion/sequence/comparison.hpp>
  9. #include <boost/fusion/sequence/sequence_facade.hpp>
  10. #include <boost/phoenix/core.hpp>
  11. #include <boost/phoenix/operator/comparison.hpp>
  12. struct foo : boost::fusion::sequence_facade<foo, boost::fusion::random_access_traversal_tag>
  13. {
  14. // Rest of the sequence_facade extension mechanism code omitted,
  15. // as it is not needed to reproduce the error
  16. foo() : x(), y() {}
  17. int x;
  18. int y;
  19. };
  20. int main()
  21. {
  22. (void)(boost::phoenix::arg_names::arg1 < foo());
  23. }