Function types need to be screened out of is_pod on Oracle.

This commit is contained in:
jzmaddock
2015-06-14 13:06:23 +01:00
parent 17985daa3c
commit 6f5f212fa0
2 changed files with 5 additions and 1 deletions

View File

@ -277,7 +277,7 @@
# include <boost/type_traits/is_volatile.hpp>
# define BOOST_IS_UNION(T) __oracle_is_union(T)
# define BOOST_IS_POD(T) __oracle_is_pod(T)
# define BOOST_IS_POD(T) (__oracle_is_pod(T) && !is_function<T>::value)
# define BOOST_IS_EMPTY(T) __oracle_is_empty(T)
# define BOOST_HAS_TRIVIAL_CONSTRUCTOR(T) (__oracle_has_trivial_constructor(T) && ! ::boost::is_volatile<T>::value)
# define BOOST_HAS_TRIVIAL_COPY(T) (__oracle_has_trivial_copy(T) && !is_reference<T>::value)

View File

@ -14,6 +14,10 @@
#include <boost/type_traits/is_scalar.hpp>
#include <boost/type_traits/intrinsics.hpp>
#ifdef __SUNPRO_CC
#include <boost/type_traits/is_function.hpp>
#endif
#include <cstddef>
#ifndef BOOST_IS_POD