इस वाक्य रचना this question के जवाब का एक भाग के रूप में इस्तेमाल किया गया था समझ में:कृपया मदद मुझे इस वाक्य रचना (सी में स्थिर ज़ोर लागू करने ++)
template <bool>
struct static_assert;
template <>
struct static_assert<true> {}; // only true is defined
#define STATIC_ASSERT(x) static_assert<(x)>()
मुझे लगता है कि वाक्य रचना समझ में नहीं आता। यह कैसे काम करता है?
मान लीजिए मैं
STATIC_ASSERT(true);
यह
static_assert<true>();
में परिवर्तित हो जाता अब क्या करते हैं?
:) – GManNickG