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 6 #if defined(_MSC_VER) 7 # pragma warning( disable: 4510 ) // default constructor not generated 8 # pragma warning( disable: 4512 ) // assignment operator not generated 9 # pragma warning( disable: 4610 ) // class can never be instantiated 10 #endif 11 12 #include <boost/spirit/include/qi.hpp> 13 #include <boost/endian/arithmetic.hpp> 14 15 struct record 16 { 17 boost::endian::big_int16_t type; 18 recordrecord19 record( boost::int16_t t ) 20 { 21 type = t; 22 } 23 }; 24