|
From: Mailing l. u. f. U. C. a. U. <kal...@li...> - 2013-07-25 15:33:10
|
> Scratch that! I was just going over the icpc discussion thread you > pointed to. From the "non-integral operation not allowed in nontype > template argument" error message, I am guessing that icpc is not > treating '&& "string"' as a constant integral expression, which seems > to be wrong... unless I am missing something. it's hard to say... the string is constant and can be determined at compile time. but the position/pointer of the const string seems not? anyway, my post on stackoverflow may give some suggestion on compile time assert with custom messages for your reference. http://stackoverflow.com/questions/17860727/template-based-compile-time-assert-with-custom-messages-can-only-be-compiled-in |