From ff181fc5e52073511616d453aec475b47b76a78c Mon Sep 17 00:00:00 2001 From: Evgeny Safronov Date: Tue, 9 Jan 2018 15:22:37 +0300 Subject: [PATCH] fix: clang 5.x support --- include/blackhole/sink/file.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/blackhole/sink/file.hpp b/include/blackhole/sink/file.hpp index 1f8eb05f..7e45d942 100644 --- a/include/blackhole/sink/file.hpp +++ b/include/blackhole/sink/file.hpp @@ -28,10 +28,6 @@ class file_t; template> class binary_unit; -/// Disable all fractional units. -template -class binary_unit>; - template class binary_unit> { public: @@ -52,6 +48,8 @@ class binary_unit> { template class binary_unit { + static_assert(Ratio::den == 1, "fractional units are permitted"); + public: typedef Rep rep;