Skip to content
Snippets Groups Projects
Commit a33a4555 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[BL] Add explicit ptree instantiation.

This reduces compile time for multiple translation units.
parent 52b8daab
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,11 @@
#include <logog/include/logog.hpp>
// Explicitly instantiate the boost::property_tree::ptree which is a typedef to
// the following basic_ptree.
template class boost::property_tree::basic_ptree<std::string, std::string,
std::less<std::string>>;
namespace BaseLib
{
......
......@@ -10,9 +10,13 @@
#ifndef BASELIB_CONFIGTREE_H_
#define BASELIB_CONFIGTREE_H_
#include <string>
#include <boost/property_tree/ptree.hpp>
#include <boost/filesystem.hpp>
extern template class boost::property_tree::basic_ptree<
std::string, std::string, std::less<std::string>>;
namespace BaseLib
{
using ConfigTree = boost::property_tree::ptree;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment