Make typeof and typeof_unqual fallback definitions work on C++11

Peter Eisentraut <peter@eisentraut.org>

Commit: cd083b54bd675a6c941b2d52f398cebbf95b060f
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2026-03-15T06:36:27Z
Make typeof and typeof_unqual fallback definitions work on C++11

These macros were unintentionally using C++14 features. This replaces
them with valid C++11 code.

Tested locally by compiling with -std=c++11 (which reproduced the
original issue).

Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://www.postgresql.org/message-id/flat/92f9750f-c7f6-42d8-9a4a-85a3cbe808f3%40eisentraut.org

Files

PathChange+/−
src/include/c.h modified +2 −2

Discussion