Commit 5c54ef00 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

fix build without boost

parent f31f6e3a
...@@ -5,7 +5,12 @@ ...@@ -5,7 +5,12 @@
#include "Base/Code/CodeLink.hh" #include "Base/Code/CodeLink.hh"
#include "Base/Utils/ThrowError.hh" #include "Base/Utils/ThrowError.hh"
#include <boost/filesystem.hpp> #include <cstring>
#if COMISO_BOOST_AVAILABLE
# include <boost/filesystem.hpp>
#endif
#include <string> #include <string>
namespace Base { namespace Base {
...@@ -63,10 +68,12 @@ IOutputStream& operator<<(IOutputStream& _os, const Command::Type _cmd_type) ...@@ -63,10 +68,12 @@ IOutputStream& operator<<(IOutputStream& _os, const Command::Type _cmd_type)
} }
#if COMISO_BOOST_AVAILABLE
IOutputStream& operator<<(IOutputStream& _os, const boost::filesystem::path& _path) IOutputStream& operator<<(IOutputStream& _os, const boost::filesystem::path& _path)
{ {
return _os << '\"' << _path.string().c_str() << '\"'; return _os << '\"' << _path.string().c_str() << '\"';
} }
#endif // COMISO_BOOST_AVAILABLE
// Represent this as an object in the stream, to preserve the streaming order // Represent this as an object in the stream, to preserve the streaming order
struct FunctionNameFilter struct FunctionNameFilter
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#include <Base/Config/BaseDefines.hh> #include <Base/Config/BaseDefines.hh>
#include <CoMISo/Config/config.hh>
#ifdef STD_ARRAY_AVAILABLE #ifdef STD_ARRAY_AVAILABLE
#include <array> #include <array>
#endif//STD_ARRAY_AVAILABLE #endif//STD_ARRAY_AVAILABLE
...@@ -95,8 +97,10 @@ BASEDLLEXPORT IOutputStream& operator<<(IOutputStream& _os, const Command& _co); ...@@ -95,8 +97,10 @@ BASEDLLEXPORT IOutputStream& operator<<(IOutputStream& _os, const Command& _co);
BASEDLLEXPORT IOutputStream& operator<<(IOutputStream& _os, const Command::Type _cmd_type); BASEDLLEXPORT IOutputStream& operator<<(IOutputStream& _os, const Command::Type _cmd_type);
#if COMISO_BOOST_AVAILABLE
BASEDLLEXPORT IOutputStream& operator<<(IOutputStream& _os, BASEDLLEXPORT IOutputStream& operator<<(IOutputStream& _os,
const boost::filesystem::path& _path); const boost::filesystem::path& _path);
#endif // COMISO_BOOST_AVAILABLE
//! IStream operator for std::vector<> //! IStream operator for std::vector<>
template <typename ElementT> template <typename ElementT>
...@@ -268,4 +272,6 @@ inline FormatT<> format_hex(const uint64_t _vrbl) ...@@ -268,4 +272,6 @@ inline FormatT<> format_hex(const uint64_t _vrbl)
}//namespace Base }//namespace Base
#endif//BASE_IOUTPUTSTREAM_HH_INCLUDE #endif//BASE_IOUTPUTSTREAM_HH_INCLUDE
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment