]> git.proxmox.com Git - mirror_frr.git/commit
lib: const-unaware container_of for C++
authorDavid Lamparter <equinox@diac24.net>
Mon, 3 Jun 2019 13:41:05 +0000 (15:41 +0200)
committerDavid Lamparter <equinox@diac24.net>
Tue, 11 Jun 2019 16:45:38 +0000 (18:45 +0200)
commita7f20d4328092b382c26c6d738e575c1ead9dc91
tree32169265160a11e069dc58c9d08bae1d9c8593a5
parent6aba4eeaecdb0307fda736d2bec968e5da0d5dfb
lib: const-unaware container_of for C++

This version of container_of() should work on C++, by ditching the
unavailable builtins (at the cost of no longer checking for "const"
violations.)

Signed-off-by: David Lamparter <equinox@diac24.net>
lib/compiler.h
tests/lib/cxxcompat.c