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