|
From: Enblend <enb...@li...> - 2019-11-23 14:04:13
|
branch: details: http://enblend.hg.sourceforge.net/hgweb/enblend/enblend/hg/p/enblend/code/rev/85361528635a changeset: 1538:85361528635a user: tmodes <tm...@us...> date: Sat Nov 23 15:03:53 2019 +0100 description: Remove our as_const implementation because it is now included in C++17 diffstat: VERSION | 2 +- src/opencl.h | 30 ------------------------------ 2 files changed, 1 insertions(+), 31 deletions(-) diffs (46 lines): diff -r b7ed254a9d70 -r 85361528635a VERSION --- a/VERSION Sat Nov 23 15:02:34 2019 +0100 +++ b/VERSION Sat Nov 23 15:03:53 2019 +0100 @@ -1,1 +1,1 @@ -4.3-1f882f1c83ef +4.3-b7ed254a9d70 diff -r b7ed254a9d70 -r 85361528635a src/opencl.h --- a/src/opencl.h Sat Nov 23 15:02:34 2019 +0100 +++ b/src/opencl.h Sat Nov 23 15:03:53 2019 +0100 @@ -63,36 +63,6 @@ #define UNUSEDVAR __attribute__((unused)) #endif - -#ifndef HAVE_AS_CONST -namespace std -{ - // Available in C++17 - // See for example: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0007r0.html - - template <typename t> - inline static - const t& - as_const(const t& x) noexcept - { - return x; - } - - template <typename t> - inline static - const t -#if (defined _MSC_VER) && (_MSC_VER <= 1800) - as_const(t&& x) -#else - as_const(t&& x) noexcept(noexcept(t(x))) -#endif - { - return x; - } -} -#endif - - namespace cl { // forward declarations |