I have been unable to compile lyxsum.C since version 1.18 (we're now on version 1.25). This is what I get when I try and do so. It seems such an irritating error --- why should my compiler barf if a template parameter is not used? Can someone explain it to me?
Regards, Angus cxx -std strict_ansi -DHAVE_CONFIG_H -I. -I../../../devel/src/support -I../../src -I../../../devel/src/support/../ -I../../../devel -I../.. -I../../../devel/boost -I../../../devel/src/cheaders -I/usr/local/include -nocleanup -msg_display_number -msg_disable 11,193,236,261,401,611 -w0 -ptr /usr/users/aleem/OTHERS_CODE/lyx/devel-build/lyx_cxx_repository -O2 -c -MD ../../../devel/src/support/lyxsum.Ccxx: Error: ../../../devel/boost/boost/crc.hpp, line 77: #445 constant "Bits" is not used in declaring the parameter types of function template "boost::crc" template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly, -----------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 77: #445 constant "TruncPoly" is not used in declaring the parameter types of function template "boost::crc" template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly, -------------------------------------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 78: #445 constant "InitRem" is not used in declaring the parameter types of function template "boost::crc" BOOST_CRC_PARM_TYPE InitRem, BOOST_CRC_PARM_TYPE FinalXor, -------------------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 78: #445 constant "FinalXor" is not used in declaring the parameter types of function template "boost::crc" BOOST_CRC_PARM_TYPE InitRem, BOOST_CRC_PARM_TYPE FinalXor, ------------------------------------------------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 79: #445 constant "ReflectIn" is not used in declaring the parameter types of function template "boost::crc" bool ReflectIn, bool ReflectRem > ----------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 79: #445 constant "ReflectRem" is not used in declaring the parameter types of function template "boost::crc" bool ReflectIn, bool ReflectRem > --------------------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 84: #445 constant "Bits" is not used in declaring the parameter types of function template "boost::augmented_crc" template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly > -----------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 84: #445 constant "TruncPoly" is not used in declaring the parameter types of function template "boost::augmented_crc" template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly > -------------------------------------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 89: #445 constant "Bits" is not used in declaring the parameter types of function template "boost::augmented_crc<Bits,TruncPoly>(const void *, std::size_t)" template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly > -----------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 89: #445 constant "TruncPoly" is not used in declaring the parameter types of function template "boost::augmented_crc<Bits,TruncPoly>(const void *, std::size_t)" template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly > -------------------------------------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 986: #445 constant "Bits" is not used in declaring the parameter types of function template "boost::crc" template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly, -----------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 986: #445 constant "TruncPoly" is not used in declaring the parameter types of function template "boost::crc" template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly, -------------------------------------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 987: #445 constant "InitRem" is not used in declaring the parameter types of function template "boost::crc" BOOST_CRC_PARM_TYPE InitRem, BOOST_CRC_PARM_TYPE FinalXor, -------------------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 987: #445 constant "FinalXor" is not used in declaring the parameter types of function template "boost::crc" BOOST_CRC_PARM_TYPE InitRem, BOOST_CRC_PARM_TYPE FinalXor, ------------------------------------------------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 988: #445 constant "ReflectIn" is not used in declaring the parameter types of function template "boost::crc" bool ReflectIn, bool ReflectRem > ----------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 988: #445 constant "ReflectRem" is not used in declaring the parameter types of function template "boost::crc" bool ReflectIn, bool ReflectRem > --------------------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 1006: #445 constant "Bits" is not used in declaring the parameter types of function template "boost::augmented_crc<Bits,TruncPoly>(const void *, std::size_t, boost::uint_t<(int)Bits>::fast)" template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly > -----------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 1006: #445 constant "TruncPoly" is not used in declaring the parameter types of function template "boost::augmented_crc<Bits,TruncPoly>(const void *, std::size_t, boost::uint_t<(int)Bits>::fast)" template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly > -------------------------------------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 1039: #445 constant "Bits" is not used in declaring the parameter types of function template "boost::augmented_crc<Bits,TruncPoly>(const void *, std::size_t)" template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly > -----------------------^ cxx: Error: ../../../devel/boost/boost/crc.hpp, line 1039: #445 constant "TruncPoly" is not used in declaring the parameter types of function template "boost::augmented_crc<Bits,TruncPoly>(const void *, std::size_t)" template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly > -------------------------------------------------^ cxx: Info: ../../../devel/boost/boost/crc.hpp, line 541: #1136-D conversion to integral type of smaller size could lose data detected during: instantiation of "unsigned char boost::detail::crc_helper<Bits, DoReflect>::index(boost::detail::crc_helper<Bits, DoReflect>::value_type, unsigned char) [with Bits=32UL, DoReflect=true]" at line 923 instantiation of "void boost::crc_optimal<Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem>::process_block(const void *, const void *) [with Bits=32UL, TruncPoly=79764919U, InitRem=4294967295U, FinalXor=4294967295U, ReflectIn=true, ReflectRem=true]" { return x ^ rem; } ---------------------^ cxx: Info: 20 errors detected in the compilation of "../../../devel/src/support/lyxsum.C". make: *** [lyxsum.lo] Error 1