hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
fmt::enable_if_t< std::is_same< decltype(std::declval< T >().toString()), std::string >::value, char > Struct Template Reference

#include "logger.hpp"

Collaboration diagram for fmt::enable_if_t< std::is_same< decltype(std::declval< T >().toString()), std::string >::value, char >:
Collaboration graph

Public Member Functions

template<typename ParseContext >
ParseContext::iterator parse (ParseContext &ctx)
 
template<typename FormatContext >
auto format (const T &val, FormatContext &ctx) -> decltype(ctx.out())
 

Detailed Description

template<typename T>
struct fmt::enable_if_t< std::is_same< decltype(std::declval< T >().toString()), std::string >::value, char >

Allows to log objects, which have toString() method without calling it, e.g. log.info("{}", myObject)

Member Function Documentation

template<typename T >
template<typename FormatContext >
auto fmt::enable_if_t< std::is_same< decltype(std::declval< T >().toString()), std::string >::value, char >::format ( const T &  val,
FormatContext &  ctx 
) -> decltype(ctx.out())
inline
template<typename T >
template<typename ParseContext >
ParseContext::iterator fmt::enable_if_t< std::is_same< decltype(std::declval< T >().toString()), std::string >::value, char >::parse ( ParseContext &  ctx)
inline

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