Skip to content

Commit c802cc4

Browse files
committed
Fixed msgpack#1037.
Added MSGPACK_NO_BOOST guard for direct inclusion of chrono adaptor,
1 parent fb64ea0 commit c802cc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/msgpack/v1/adaptor/cpp11/chrono.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#ifndef MSGPACK_V1_TYPE_CPP11_CHRONO_HPP
1212
#define MSGPACK_V1_TYPE_CPP11_CHRONO_HPP
1313

14+
#if defined(MSGPACK_NO_BOOST)
15+
1416
#include "msgpack/versioning.hpp"
1517
#include "msgpack/adaptor/adaptor_base.hpp"
1618
#include "msgpack/object.hpp"
@@ -248,4 +250,6 @@ struct object_with_zone<std::chrono::time_point<Clock, Duration>> {
248250

249251
} // namespace msgpack
250252

253+
#endif // defined(MSGPACK_NO_BOOST)
254+
251255
#endif // MSGPACK_V1_TYPE_CPP11_CHRONO_HPP

0 commit comments

Comments
 (0)