Namespaces
Variants
Views
Actions

Talk:cpp/header/contracts

From cppreference.com
namespace std::contracts {
 
  enum class assertion_kind : /* unspecified */ {
    pre = 1,
    post = 2,
    assert = 3 // <= DEFECTIVE name, incompatible with assert() macro!
  };
 
 ...
 
}

--Space Mission (talk) 17:30, 16 March 2025 (PDT)

assert is a functional macro; functional macros aren't substituted when not called like a function --Ybab321 (talk) 04:25, 17 March 2025 (PDT)
👌 --Space Mission (talk) 05:49, 17 March 2025 (PDT)