Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
CoMISo
Base
Compare Revisions
f31f6e3ae0a097c2e04bc750589e00ccc972feaf...5c54ef0065f46b07dbea44644515a00665563235
Commits (1)
fix build without boost
· 5c54ef00
Martin Heistermann
authored
Aug 12, 2019
5c54ef00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
Utils/IOutputStream.cc
Utils/IOutputStream.cc
+8
-1
Utils/IOutputStream.hh
Utils/IOutputStream.hh
+6
-0
No files found.
Utils/IOutputStream.cc
View file @
5c54ef00
...
...
@@ -5,7 +5,12 @@
#include "Base/Code/CodeLink.hh"
#include "Base/Utils/ThrowError.hh"
#include <boost/filesystem.hpp>
#include <cstring>
#if COMISO_BOOST_AVAILABLE
# include <boost/filesystem.hpp>
#endif
#include <string>
namespace
Base
{
...
...
@@ -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
)
{
return
_os
<<
'\"'
<<
_path
.
string
().
c_str
()
<<
'\"'
;
}
#endif // COMISO_BOOST_AVAILABLE
// Represent this as an object in the stream, to preserve the streaming order
struct
FunctionNameFilter
...
...
Utils/IOutputStream.hh
View file @
5c54ef00
...
...
@@ -15,6 +15,8 @@
#include <Base/Config/BaseDefines.hh>
#include <CoMISo/Config/config.hh>
#ifdef STD_ARRAY_AVAILABLE
#include <array>
#endif//STD_ARRAY_AVAILABLE
...
...
@@ -95,8 +97,10 @@ BASEDLLEXPORT IOutputStream& operator<<(IOutputStream& _os, const Command& _co);
BASEDLLEXPORT
IOutputStream
&
operator
<<
(
IOutputStream
&
_os
,
const
Command
::
Type
_cmd_type
);
#if COMISO_BOOST_AVAILABLE
BASEDLLEXPORT
IOutputStream
&
operator
<<
(
IOutputStream
&
_os
,
const
boost
::
filesystem
::
path
&
_path
);
#endif // COMISO_BOOST_AVAILABLE
//! IStream operator for std::vector<>
template
<
typename
ElementT
>
...
...
@@ -268,4 +272,6 @@ inline FormatT<> format_hex(const uint64_t _vrbl)
}
//namespace Base
#endif//BASE_IOUTPUTSTREAM_HH_INCLUDE