Boost logo

Boost Users :

From: Xikai Jiang (jxk28_at_[hidden])
Date: 2019-12-16 09:18:52


Dear developers:

I encountered an error when compiling software that uses boost. I'm using boost_1.72.0, and the compiler I used is intel mpiicpc (ICC) 16.0.3 20160415

Below is the error message:

[ 1%] Building CXX object src/core/CMakeFiles/EspressoCore.dir/accumulators.cpp.o
In file included from /THL7/home/hugq/xikai_jiang/Softwares/boost_1_72_0/build/include/boost/utility.hpp(22),
                 from /THL7/home/hugq/xikai_jiang/Softwares/boost_1_72_0/build/include/boost/range/size.hpp(25),
                 from /THL7/home/hugq/xikai_jiang/Softwares/boost_1_72_0/build/include/boost/range/functions.hpp(20),
                 from /THL7/home/hugq/xikai_jiang/Softwares/boost_1_72_0/build/include/boost/range/iterator_range_core.hpp(38),
                 from /THL7/home/hugq/xikai_jiang/Softwares/boost_1_72_0/build/include/boost/range/iterator_range.hpp(13),
                 from /THL7/home/hugq/xikai_jiang/Softwares/boost_1_72_0/build/include/boost/range/detail/range_return.hpp(14),
                 from /THL7/home/hugq/xikai_jiang/Softwares/boost_1_72_0/build/include/boost/range/algorithm/remove_if.hpp(16),
                 from /THL7/home/hugq/xikai_jiang/Softwares/espresso-4.1.2/src/core/accumulators.cpp(21):
/THL7/home/hugq/xikai_jiang/Softwares/boost_1_72_0/build/include/boost/core/noncopyable.hpp(42): error: defaulted default constructor cannot be constexpr because the corresponding implicitly declared default constructor would not be constexpr
        BOOST_CONSTEXPR noncopyable() = default;
                        ^
compilation aborted for /THL7/home/hugq/xikai_jiang/Softwares/espresso-4.1.2/src/core/accumulators.cpp (code 2)
make[2]: *** [src/core/CMakeFiles/EspressoCore.dir/accumulators.cpp.o] Error 2
make[1]: *** [src/core/CMakeFiles/EspressoCore.dir/all] Error 2
make: *** [all] Error 2

Let me know if you need further information to diagnose the issue. Hints to resolve the issue are appreciated.

Regards,

Xikai



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net