Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing includes #112

Merged
merged 2 commits into from
Dec 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ jobs:
shell: cmd
run: |
cd ../boost-root
b2 -j1 libs/%LIBRARY%/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}} address-model=${{matrix.addrmd}} ${{matrix.cxxflags}} variant=debug,release embed-manifest-via=linker
b2 -j1 --abbreviate-paths libs/%LIBRARY%/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}} address-model=${{matrix.addrmd}} ${{matrix.cxxflags}} variant=debug,release embed-manifest-via=linker
posix-cmake-subdir:
strategy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#ifndef BOOST_PROPERTY_TREE_DETAIL_EXCEPTIONS_IMPLEMENTATION_HPP_INCLUDED
#define BOOST_PROPERTY_TREE_DETAIL_EXCEPTIONS_IMPLEMENTATION_HPP_INCLUDED

#include <boost/property_tree/exceptions.hpp>

#include <string>

namespace boost { namespace property_tree
{

Expand Down
1 change: 1 addition & 0 deletions include/boost/property_tree/detail/file_parser_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include <boost/property_tree/ptree.hpp>
#include <string>
#include <sstream>

namespace boost { namespace property_tree
{
Expand Down
7 changes: 5 additions & 2 deletions include/boost/property_tree/detail/info_parser_write.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
#ifndef BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_WRITE_HPP_INCLUDED
#define BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_WRITE_HPP_INCLUDED

#include "boost/property_tree/ptree.hpp"
#include "boost/property_tree/detail/info_parser_utils.hpp"
#include <boost/property_tree/detail/info_parser_error.hpp>
#include <boost/property_tree/detail/info_parser_utils.hpp>
#include <boost/property_tree/detail/info_parser_writer_settings.hpp>
#include <boost/property_tree/ptree.hpp>

#include <string>

namespace boost { namespace property_tree { namespace info_parser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#ifndef BOOST_PROPERTY_TREE_DETAIL_PTREE_IMPLEMENTATION_HPP_INCLUDED
#define BOOST_PROPERTY_TREE_DETAIL_PTREE_IMPLEMENTATION_HPP_INCLUDED

#include <boost/property_tree/ptree.hpp>
#include <boost/iterator/iterator_adaptor.hpp>
#include <boost/iterator/reverse_iterator.hpp>
#include <boost/assert.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/boost/property_tree/json_parser/detail/write.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#ifndef BOOST_PROPERTY_TREE_DETAIL_JSON_PARSER_WRITE_HPP_INCLUDED
#define BOOST_PROPERTY_TREE_DETAIL_JSON_PARSER_WRITE_HPP_INCLUDED

#include <boost/property_tree/json_parser/error.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/next_prior.hpp>
#include <boost/type_traits/make_unsigned.hpp>
Expand Down
9 changes: 9 additions & 0 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# http://www.boost.org/LICENSE_1_0.txt)

# bring in rules for testing
import path ;
import regex ;
import testing ;

project
Expand All @@ -32,6 +34,13 @@ run test_xml_parser_rapidxml.cpp ;

run test_multi_module1.cpp test_multi_module2.cpp ;

# Ensure that all headers are self-contained.
for local file in [ glob-tree-ex ../include : *.hpp ]
{
local rel_name = [ path.relative-to ../include $(file) ] ;
compile self_contained_header.cpp : <define>HEADER_PATH=$(rel_name) : [ regex.replace $(rel_name) "/" "_" ] ;
}

compile ../examples/custom_data_type.cpp ;
compile ../examples/debug_settings.cpp ;
compile ../examples/empty_ptree_trick.cpp ;
Expand Down
3 changes: 3 additions & 0 deletions test/self_contained_header.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#define INCLUDE_HEADER() <HEADER_PATH>

#include INCLUDE_HEADER()