From 03ae4b3465a017bd6ed24c8b310e40f524bc3a25 Mon Sep 17 00:00:00 2001 From: Paul Groke Date: Tue, 21 Feb 2017 22:54:41 +0100 Subject: [PATCH] support for IBM XL C/C++ compiler family __typeof__ --- include/boost/typeof/typeof.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/typeof/typeof.hpp b/include/boost/typeof/typeof.hpp index 9c40b7a..06bc89c 100644 --- a/include/boost/typeof/typeof.hpp +++ b/include/boost/typeof/typeof.hpp @@ -161,6 +161,13 @@ # define BOOST_TYPEOF_KEYWORD __typeof__ # endif # endif +#elif defined(__IBM__TYPEOF__) +# ifndef BOOST_TYPEOF_EMULATION +# ifndef BOOST_TYPEOF_NATIVE +# define BOOST_TYPEOF_NATIVE +# endif +# define BOOST_TYPEOF_KEYWORD __typeof__ +# endif #else //unknown compiler # ifndef BOOST_TYPEOF_NATIVE # ifndef BOOST_TYPEOF_EMULATION