// PR c++/24275 template struct bool_var { static const bool value = val; }; namespace is_inc_ { struct any { template any(T const&); }; int operator++(any const&); template struct impl { static T &x; static const bool value = sizeof(++x) == 1; }; } template struct is_incr : bool_var< is_inc_::impl::value> {}; struct not_incr{}; typedef int sa1[ is_incr::value ? -1 : 1];