summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/Functional.h
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-04-18 00:14:25 +0200
committerJose <jose@zeroc.com>2018-04-18 00:21:06 +0200
commitbd7f64820c89cd535023113af08dc20fc7f41ee7 (patch)
tree69fd73adf4b0c8b33a732102f965ddff5737d860 /cpp/include/Ice/Functional.h
parentIceGridGUI macOS JDK 10 build fixes (diff)
downloadice-bd7f64820c89cd535023113af08dc20fc7f41ee7.tar.bz2
ice-bd7f64820c89cd535023113af08dc20fc7f41ee7.tar.xz
ice-bd7f64820c89cd535023113af08dc20fc7f41ee7.zip
Fixes for C++17 compatibility
Avoid using functions that have been removed in C++17 Added ICE_CPLUSPLUS macro to workaround __cplusplus not always set with VC++ compiler Fixes #24
Diffstat (limited to 'cpp/include/Ice/Functional.h')
-rw-r--r--cpp/include/Ice/Functional.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/include/Ice/Functional.h b/cpp/include/Ice/Functional.h
index 3241df1ceb7..96f1d2d24e9 100644
--- a/cpp/include/Ice/Functional.h
+++ b/cpp/include/Ice/Functional.h
@@ -10,6 +10,8 @@
#ifndef ICE_FUNCTIONAL_H
#define ICE_FUNCTIONAL_H
+# if !defined(ICE_CPP11_MAPPING) || defined(ICE_BUILDING_SRC)
+
#include <IceUtil/Functional.h>
#include <Ice/Handle.h>
@@ -137,4 +139,5 @@ secondConstVoidMemFun1(void (T::*p)(A) const)
}
+# endif
#endif