branch:
details: http://enblend.hg.sourceforge.net/hgweb/enblend/enblend/hg/p/enblend/code/rev/acca568fcdc3
changeset: 1525:acca568fcdc3
user: Chris <cs...@us...>
date: Mon Oct 21 13:57:00 2019 +0200
description:
C++17: replace std::as_const<> with std::add_const<>.
diffstat:
VERSION | 2 +-
src/opencl.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 4c30a326b3f4 -r acca568fcdc3 VERSION
--- a/VERSION Sat Oct 19 08:59:10 2019 +0200
+++ b/VERSION Mon Oct 21 13:57:00 2019 +0200
@@ -1,1 +1,1 @@
-4.3-f3e6c6c88e6e
+4.3-4c30a326b3f4
diff -r 4c30a326b3f4 -r acca568fcdc3 src/opencl.h
--- a/src/opencl.h Sat Oct 19 08:59:10 2019 +0200
+++ b/src/opencl.h Mon Oct 21 13:57:00 2019 +0200
@@ -408,7 +408,7 @@
template <typename t>
typename std::add_const<t>::type get() const
{
- return std::as_const(static_cast<t>(super::base_address()));
+ return std::add_const_t<typename std::add_const<t>::type>(static_cast<t>(super::base_address()));
}
}; // class ScopedReadMap
|