Open chburger opened 6 years ago
I encounter the following problem: icpc is ver 18
icpc -I-mkl -I./include/ -I./ -I./newmat10/ -I/home/peterc/b66/include -I. -I./modules/generate_blocks/ -I./modules/onepdm -I./modules/twopdm/ -I./modules/npdm -I./modules/two_index_ops -I./modules/three_index_ops -I./modules/four_index_ops -std=c++0x -I./modules/ResponseTheory -I./modules/nevpt2 -I./molcas -I./modules/mps_nevpt -DNDEBUG -Ofast -xcommon-avx512 -qopenmp -w -DBLAS -DUSELAPACK -DSERIAL -DBOOST_1_56_0 -DFAST_MTP -D_HAS_CBLAS -D_HAS_INTEL_MKL -c Stackspinblock.C -o Stackspinblock.o /home/peterc/b66/include/boost/bind/bind.hpp(602): error: initial value of reference to non-const must be an lvalue unwrapper::unwrap(f, 0)(a[basetype::a1], a[basetype::a2], a[basetype::a3], a[basetype::a4], a[basetype::a5], a[basetype::a6]); ^ detected during: instantiation of "void boost::_bi::list6<A1, A2, A3, A4, A5, A6>::operator()(boost::_bi::type, F &, A &, int) [with A1=boost::_bi::value<SpinAdapted::StackSpinBlock >, A2=boost::arg<1>, A3=boost::_bi::value<const SpinAdapted::StackSpinBlock >, A4=boost::reference_wrapper, A5=boost::_bi::value<SpinAdapted::StackWavefunction >, A6=boost::_bi::value, F=void ()(const SpinAdapted::StackSpinBlock , boost::shared_ptr &, const SpinAdapted::StackSpinBlock , SpinAdapted::StackWavefunction &, SpinAdapted::StackWavefunction , const SpinAdapted::SpinQuantum &), A=boost::_bi::rrlist1<boost::shared_ptr>]" at line 1306 instantiation of "boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()(A1 &&) [with R=void, F=void ()(const SpinAdapted::StackSpinBlock , boost::shared_ptr &, const SpinAdapted::StackSpinBlock , SpinAdapted::StackWavefunction &, SpinAdapted::StackWavefunction , const SpinAdapted::SpinQuantum &), L=boost::_bi::list6<boost::_bi::value<SpinAdapted::StackSpinBlock >, boost::arg<1>, boost::_bi::value<const SpinAdapted::StackSpinBlock >, boost::reference_wrapper, boost::_bi::value<SpinAdapted::StackWavefunction >, boost::_bi::value>, A1=boost::shared_ptr]" at line 159 of "/home/peterc/b66/include/boost/function/function_template.hpp"
I encounter the following problem: icpc is ver 18
icpc -I-mkl -I./include/ -I./ -I./newmat10/ -I/home/peterc/b66/include -I. -I./modules/generate_blocks/ -I./modules/onepdm -I./modules/twopdm/ -I./modules/npdm -I./modules/two_index_ops -I./modules/three_index_ops -I./modules/four_index_ops -std=c++0x -I./modules/ResponseTheory -I./modules/nevpt2 -I./molcas -I./modules/mps_nevpt -DNDEBUG -Ofast -xcommon-avx512 -qopenmp -w -DBLAS -DUSELAPACK -DSERIAL -DBOOST_1_56_0 -DFAST_MTP -D_HAS_CBLAS -D_HAS_INTEL_MKL -c Stackspinblock.C -o Stackspinblock.o /home/peterc/b66/include/boost/bind/bind.hpp(602): error: initial value of reference to non-const must be an lvalue unwrapper::unwrap(f, 0)(a[basetype::a1], a[basetype::a2], a[basetype::a3], a[basetype::a4], a[basetype::a5], a[basetype::a6]);
^
detected during:
instantiation of "void boost::_bi::list6<A1, A2, A3, A4, A5, A6>::operator()(boost::_bi::type, F &, A &, int) [with A1=boost::_bi::value<SpinAdapted::StackSpinBlock >, A2=boost::arg<1>, A3=boost::_bi::value<const SpinAdapted::StackSpinBlock >, A4=boost::reference_wrapper, A5=boost::_bi::value<SpinAdapted::StackWavefunction >, A6=boost::_bi::value, F=void ( )(const SpinAdapted::StackSpinBlock ,
boost::shared_ptr &, const SpinAdapted::StackSpinBlock , SpinAdapted::StackWavefunction &, SpinAdapted::StackWavefunction , const SpinAdapted::SpinQuantum &), A=boost::_bi::rrlist1<boost::shared_ptr>]" at line 1306
instantiation of "boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()(A1 &&) [with R=void, F=void ( )(const SpinAdapted::StackSpinBlock , boost::shared_ptr &, const SpinAdapted::StackSpinBlock , SpinAdapted::StackWavefunction &, SpinAdapted::StackWavefunction , const SpinAdapted::SpinQuantum &), L=boost::_bi::list6<boost::_bi::value<SpinAdapted::StackSpinBlock >, boost::arg<1>, boost::_bi::value<const
SpinAdapted::StackSpinBlock >, boost::reference_wrapper, boost::_bi::value<SpinAdapted::StackWavefunction >, boost::_bi::value>, A1=boost::shared_ptr]" at line 159 of "/home/peterc/b66/include/boost/function/function_template.hpp"