fix doc example typo
[boost.git] / boost / property_tree / detail / xml_parser_flags.hpp
blobb4fa0529ddca412301a954a9cd9e01f97c629397
1 // ----------------------------------------------------------------------------
2 // Copyright (C) 2002-2006 Marcin Kalicinski
3 //
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //
8 // For more information, see www.boost.org
9 // ----------------------------------------------------------------------------
10 #ifndef BOOST_PROPERTY_TREE_DETAIL_XML_PARSER_FLAGS_HPP_INCLUDED
11 #define BOOST_PROPERTY_TREE_DETAIL_XML_PARSER_FLAGS_HPP_INCLUDED
13 namespace boost { namespace property_tree { namespace xml_parser
16 static const int no_concat_text = 1; // Text elements should be put in separate keys, not concatenated in parent data
17 static const int no_comments = 2; // Comments should be omitted
19 inline bool validate_flags(int flags)
21 return (flags & ~(no_concat_text | no_comments)) == 0;
24 } } }
26 #endif