spirit_conflict_test.cpp 574 B

1234567891011121314151617181920212223
  1. // Copyright 2019 Peter Dimov
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // http://www.boost.org/LICENSE_1_0.txt
  5. #if defined(_MSC_VER)
  6. # pragma warning( disable: 4510 ) // default constructor not generated
  7. # pragma warning( disable: 4512 ) // assignment operator not generated
  8. # pragma warning( disable: 4610 ) // class can never be instantiated
  9. #endif
  10. #include <boost/spirit/include/qi.hpp>
  11. #include <boost/endian/arithmetic.hpp>
  12. struct record
  13. {
  14. boost::endian::big_int16_t type;
  15. record( boost::int16_t t )
  16. {
  17. type = t;
  18. }
  19. };