24 #include <type_traits> 39 std::string m_description;
43 : m_name(
"Key"), m_description(
"does not exist (read-only).")
45 OutOfRangeMsg(std::string
const name, std::string
const description)
46 : m_name(name), m_description(description)
51 typename =
typename std::enable_if<
52 std::is_integral<T_Key>::value ||
53 std::is_floating_point<T_Key>::value>::type>
54 std::string operator()(T_Key
const key)
const 56 return m_name + std::string(
" '") + std::to_string(key) +
57 std::string(
"' ") + m_description;
60 std::string operator()(std::string
const key)
const 62 return m_name + std::string(
" '") + std::string(key) +
63 std::string(
"' ") + m_description;
66 std::string operator()(...)
const 68 return m_name + std::string(
" ") + m_description;
Return an error string for read-only access.
Definition: OutOfRangeMsg.hpp:36
Public definitions of openPMD-api.
Definition: Date.cpp:28