From 20c78f32c62bed54af5760dae77f67a80fc46f04 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 5 May 2016 23:12:55 -0300 Subject: [PATCH] Fix static_assert() error on gcc and clang --- src/doc/algorithm/shrink_bounds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/algorithm/shrink_bounds.cpp b/src/doc/algorithm/shrink_bounds.cpp index 36221e2ea..d3dc4bf7c 100644 --- a/src/doc/algorithm/shrink_bounds.cpp +++ b/src/doc/algorithm/shrink_bounds.cpp @@ -22,7 +22,7 @@ namespace { template bool is_same_pixel(color_t pixel1, color_t pixel2) { - static_assert(false, "No is_same_pixel impl"); + static_assert(false && sizeof(ImageTraits), "No is_same_pixel impl"); } template<>