Separated adaptor functions' definitions and declarations.

This commit is contained in:
Takatoshi Kondo
2014-10-15 17:32:15 +09:00
parent 4c00f448aa
commit db8578a62b
60 changed files with 5994 additions and 191 deletions

View File

@@ -19,7 +19,7 @@
#define MSGPACK_CPP11_TUPLE_HPP
#include "msgpack/versioning.hpp"
#include "msgpack_forward.hpp"
#include "msgpack_fwd.hpp"
#include <tuple>
@@ -57,7 +57,7 @@ struct StdTuplePacker<Stream, Tuple, 0> {
template <typename Stream, typename... Args>
const packer<Stream>& operator<< (
inline const packer<Stream>& operator<< (
packer<Stream>& o,
const std::tuple<Args...>& v) {
o.pack_array(sizeof...(Args));
@@ -95,7 +95,7 @@ struct StdTupleConverter<Tuple, 0> {
};
template <typename... Args>
object const& operator>> (
inline object const& operator>> (
object const& o,
std::tuple<Args...>& v) {
if(o.type != type::ARRAY) { throw type_error(); }