Commit 7b71e004 authored by Jordi Inglada's avatar Jordi Inglada

COMP: force c++14 standard

- update CMake minimum required version
- set the C++ standard
- set otb::Image constructor to =delete to test
parent 7ee6d83b
......@@ -18,7 +18,7 @@
# limitations under the License.
#
cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.1.0)
foreach(p
CMP0025 # CMake 3.0
......@@ -43,6 +43,10 @@ endif()
project(OTB)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
include(CMakeDependentOption)
#
# use ExternalProject
......
......@@ -197,10 +197,10 @@ protected:
~Image() ITK_OVERRIDE {}
private:
Image(const Self &); //purposely not implemented
Image(const Self &) = delete;
void operator =(const Self&); //purposely not implemented
/** Return the ImageMetadataInterfacePointer associated to the data
/** Return the ImageMetadataInterfacePointer associated to the data
* and creates it on first call
*/
ImageMetadataInterfacePointerType GetMetaDataInterface() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment