forked from OctaForge/libostd
stricter to_format check
parent
ad2d69e83d
commit
0e0ba19ead
|
@ -399,9 +399,8 @@ protected:
|
||||||
/* for custom container formatting */
|
/* for custom container formatting */
|
||||||
|
|
||||||
template<typename T, typename R, typename = EnableIf<
|
template<typename T, typename R, typename = EnableIf<
|
||||||
IsSame<decltype(declval<T>().to_format(declval<R &>(),
|
IsSame<decltype(declval<const T &>()
|
||||||
declval<const FormatSpec &>())),
|
.to_format(declval<R &>(), declval<const FormatSpec &>())), bool
|
||||||
bool
|
|
||||||
>::value
|
>::value
|
||||||
>> inline bool to_format(const T &v, R &writer, const FormatSpec &fs) {
|
>> inline bool to_format(const T &v, R &writer, const FormatSpec &fs) {
|
||||||
return v.to_format(writer, fs);
|
return v.to_format(writer, fs);
|
||||||
|
|
Loading…
Reference in New Issue