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

Specialisation of piranha::msgpack_convert() for long double. More...

#include <piranha/s11n.hpp>

Public Member Functions

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

Detailed Description

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

Specialisation of piranha::msgpack_convert() for long double.

Note
This specialisation is enabled if T is long double and std::string satisfies piranha::has_msgpack_convert.

Definition at line 977 of file s11n.hpp.

Member Function Documentation

◆ operator()()

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

Call operator.

Parameters
xthe output value.
othe object to be converted.
fthe serialization format.
Exceptions
unspecifiedany exception thrown by the public interface of msgpack::object and std::istringstream.
std::invalid_argumentif the serialized value is a non-finite value not supported by the implementation, or, when using the msgpack_format::portable format, the deserialized string does not represent a floating-point value.

Definition at line 990 of file s11n.hpp.


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