1 // Copyright (c) 2001-2011 Hartmut Kaiser 2 // Copyright (c) 2011 Jeroen Habraken 3 // 4 // Distributed under the Boost Software License, Version 1.0. (See accompanying 5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6 7 // compile test verifying it's possible to use const types for real_policies. 8 9 #include <boost/spirit/include/karma.hpp> 10 11 #include <iterator> 12 #include <string> 13 main()14int main() 15 { 16 using namespace boost::spirit::karma; 17 18 typedef real_generator<double const, real_policies<double const> > 19 double_const_type; 20 21 std::string generated; 22 generate(std::back_inserter(generated), double_const_type(), 1.0); 23 24 return 0; 25 } 26