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;