Changeset View
Changeset View
Standalone View
Standalone View
src/tinyformat.h
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Lines | |||||
#else | #else | ||||
#define TINYFORMAT_HIDDEN | #define TINYFORMAT_HIDDEN | ||||
#endif | #endif | ||||
namespace tinyformat { | namespace tinyformat { | ||||
class format_error : public std::runtime_error { | class format_error : public std::runtime_error { | ||||
public: | public: | ||||
format_error(const std::string &what) : std::runtime_error(what) {} | explicit format_error(const std::string &what) : std::runtime_error(what) {} | ||||
}; | }; | ||||
//------------------------------------------------------------------------------ | //------------------------------------------------------------------------------ | ||||
namespace detail { | namespace detail { | ||||
// Test whether type T1 is convertible to type T2 | // Test whether type T1 is convertible to type T2 | ||||
template <typename T1, typename T2> struct is_convertible { | template <typename T1, typename T2> struct is_convertible { | ||||
private: | private: | ||||
▲ Show 20 Lines • Show All 916 Lines • Show Last 20 Lines |