inline std::string to_string(const error_info<Tag, V>& info) {
  return jubatus::util::lang::lexical_cast<std::string, V>(info.value());
}
Exemple #2
0
 inline
 typename enable_if<has_to_string<T>,std::string>::type
 to_string( error_info<Tag,T> const & x )
     {
     return to_string(x.value());
     }
Exemple #3
0
	static
	bool is_valid(const error_info& info)
	noexcept
	{
		return is_al_error(info.al_error_code());
	}
Exemple #4
0
	static
	void cancel(error_info& info)
	noexcept
	{
		info.al_error_code(AL_NO_ERROR);
	}
Exemple #5
0
 inline
 std::string
 to_string( error_info<Tag,T> const & x )
     {
     return '[' + error_info_name(x) + "] = " + to_string_stub(x.value()) + '\n';
     }