From 6dc55c6bfcbf17e545f319a0e76ad4141c8eec9e Mon Sep 17 00:00:00 2001 From: Mateusz Loskot Date: Thu, 21 Jul 2022 23:47:57 +0200 Subject: [PATCH] build: Add cxx14_constexpr requirement to example/Jamfile --- example/Jamfile | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/example/Jamfile b/example/Jamfile index 192fe9cad..ba4a6e81c 100644 --- a/example/Jamfile +++ b/example/Jamfile @@ -1,20 +1,37 @@ # Boost.GIL (Generic Image Library) - examples # -# Copyright (c) 2018 Mateusz Loskot +# Copyright (c) 2018-2022 Mateusz Loskot # # Use, modification and distribution is subject to the Boost Software License, # Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) +import ../../config/checks/config : requires ; import regex ; using libjpeg : : : : true ; # work around bug on master using libpng : : : : true ; -project - : # requirements - ; +# The header providing std::experimental::filesystem +# is deprecated by Microsoft and will be REMOVED. It is superseded by the C++17 +# header providing std::filesystem. +# You can define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING +# to acknowledge that you have received this warning. +local msvc-cxxs-with-experimental-fs = 14 ; +project + : + requirements + [ requires + cxx14_constexpr + cxx14_return_type_deduction + ] + . + # TODO: Enable concepts check for all, not just test/core + #BOOST_GIL_USE_CONCEPT_CHECK=1 + msvc,$(msvc-cxxs-with-experimental-fs):_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING=1 + msvc:/bigobj + ; local sources = adaptive_histogram_equalization.cpp