summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libadhocutil/compileTimeFormatter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libadhocutil/compileTimeFormatter.h b/libadhocutil/compileTimeFormatter.h
index 1d47ef7..b454863 100644
--- a/libadhocutil/compileTimeFormatter.h
+++ b/libadhocutil/compileTimeFormatter.h
@@ -207,7 +207,7 @@ namespace AdHoc {
* @return the stream.
*/
template<typename stream, typename... Pn>
- inline typename std::enable_if<(bool)&stream::write, stream>::type &
+ inline typename std::enable_if<std::is_base_of_v<std::basic_ostream<char_type>, stream>, stream>::type &
operator()(stream & s, const Pn &... pn) const
{
return write(s, pn...);