[Bug 260251] static_assert not defined
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 260251] static_assert not defined"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Dec 2021 11:18:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260251
Konstantin Belousov <kib@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |Works As Intended
Status|New |Closed
CC| |kib@FreeBSD.org
--- Comment #1 from Konstantin Belousov <kib@FreeBSD.org> ---
C and C++ are different languages. You are using C standard to request C++
feature that is explicitly disallowed by C++ standard:
from ISO/IEC 14882:2017(E)
22.3.1 Header <cassert> synopsis
[cassert.syn]
#define assert(E) see below
1 The contents are the same as the C standard library header <assert.h>,
except that a macro named static_assert is not deļ¬ned.
--
You are receiving this mail because:
You are the assignee for the bug.