piranha  0.10
Public Member Functions | List of all members
piranha::msgpack_convert_impl< T, msgpack_convert_scalar_enabler< T > > Struct Template Reference

Specialisation of piranha::msgpack_convert() for fundamental C++ types supported by msgpack. More...

#include <piranha/s11n.hpp>

Public Member Functions

void operator() (T &x, const msgpack::object &o, msgpack_format) const
 Call operator. More...
 

Detailed Description

template<typename T>
struct piranha::msgpack_convert_impl< T, msgpack_convert_scalar_enabler< T > >

Specialisation of piranha::msgpack_convert() for fundamental C++ types supported by msgpack.

Note
This specialisation is enabled if T is one of the following types:
  • char, signed char, or unsigned char,
  • int or unsigned,
  • long or unsigned long,
  • long long or unsigned long long,
  • float or double,
  • bool.

The call operator will use directly the convert() method of the input msgpack object.

Definition at line 891 of file s11n.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
void piranha::msgpack_convert_impl< T, msgpack_convert_scalar_enabler< T > >::operator() ( T &  x,
const msgpack::object &  o,
msgpack_format   
) const
inline

Call operator.

Parameters
xthe output value.
othe object to be converted.
Exceptions
unspecifiedany exception thrown by msgpack::object::convert().

Definition at line 899 of file s11n.hpp.


The documentation for this struct was generated from the following file: