core: CV_NODISCARD macro with semantic of [[nodiscard]] attr
authorAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 16 Jul 2018 14:59:24 +0000 (17:59 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 16 Jul 2018 15:03:32 +0000 (18:03 +0300)
commitb0ee5d90234d5b8afa9e1d9c5dfb787a3a6c4720
tree4ffe8649c8d2befe284263fe38af95f30947dd27
parent4a3dfffd46161e04d41a4e7c1f4d83c6bd79472e
core: CV_NODISCARD macro with semantic of [[nodiscard]] attr

[[nodiscard]] is defined in C++17.
There is fallback alias for modern GCC / Clang compilers.
modules/core/include/opencv2/core/cvdef.h
modules/core/include/opencv2/core/mat.hpp
modules/core/perf/perf_mat.cpp