From 1c72009019a7e1709eb388d9a4750e0da78b0f5b Mon Sep 17 00:00:00 2001 From: Saurabh Shrivastava Date: Tue, 21 Mar 2017 01:22:00 +0530 Subject: [PATCH] Fix missing header file for Boost version. Additionally, added check for the presence of BOOST_VERSION macro. --- src/exporters/XmlExporter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/exporters/XmlExporter.cpp b/src/exporters/XmlExporter.cpp index 11ab591..270716f 100644 --- a/src/exporters/XmlExporter.cpp +++ b/src/exporters/XmlExporter.cpp @@ -1,6 +1,7 @@ #include "XmlExporter.h" #include #include +#include #include "exporterTools.h" using std::string; @@ -20,6 +21,10 @@ void XmlExporter::exportAnimation(const boost::filesystem::path& inputFilePath, mouthCueElement.put(".end", formatDuration(timedShape.getEnd())); } +#ifndef BOOST_VERSION //present in version.hpp + #error "Could not detect Boost version." +#endif + #if BOOST_VERSION < 105600 // Support legacy syntax using writer_setting = boost::property_tree::xml_writer_settings; #else