Skip to content

Commit

Permalink
Fixed msgpack#1037.
Browse files Browse the repository at this point in the history
Added MSGPACK_NO_BOOST guard for direct inclusion of chrono adaptor,
  • Loading branch information
redboltz committed Nov 2, 2022
1 parent fb64ea0 commit b051192
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/msgpack/v1/adaptor/cpp11/chrono.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#ifndef MSGPACK_V1_TYPE_CPP11_CHRONO_HPP
#define MSGPACK_V1_TYPE_CPP11_CHRONO_HPP

#if !defined(MSGPACK_NO_BOOST)

#include "msgpack/versioning.hpp"
#include "msgpack/adaptor/adaptor_base.hpp"
#include "msgpack/object.hpp"
Expand Down Expand Up @@ -248,4 +250,6 @@ struct object_with_zone<std::chrono::time_point<Clock, Duration>> {

} // namespace msgpack

#endif // !defined(MSGPACK_NO_BOOST)

#endif // MSGPACK_V1_TYPE_CPP11_CHRONO_HPP

0 comments on commit b051192

Please sign in to comment.