incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Lemings" <Eric.Lemi...@roguewave.com>
Subject static_assert config check
Date Wed, 11 Jun 2008 18:33:53 GMT

How's this for a suitable configuration check for static_assert?

	// compile-only test

	static_assert (sizeof (char) == 1, "impossible");

	template <int I> struct S {
	    static_assert (I >= 0, "template parameter I must be
non-negative");
	};

Brad.

Mime
View raw message