Boost logo

Boost Users :

Subject: [Boost-users] local_time.hpp gives ... boost errors
From: MAURICE Jean (jean.maurice_at_[hidden])
Date: 2016-09-28 06:44:45


Hi,

I could narrow the place where boost errors appears. Using VS2010 (with 'show includes') on a Win7 machine. Boost is installed in C:\utilitaires\boost\boost15\boost_1_50_0\boost and this directory name has been replaced by - underneath (so it's version 1.50 !)

When I write

#pragma message (" avant boost/date_time/local_time/local_time.hpp")
#include "boost/date_time/local_time/local_time.hpp"

I get all these error messages :

  avant boost/date_time/local_time/local_time.hpp
--/mpl/list/aux_/preprocessed/plain/list20.hpp(157): error C2143: syntax error : missing ',' before 'string'
--/mpl/list/aux_/preprocessed/plain/list20.hpp(163): error C2974: 'boost::mpl::list19' : invalid template argument for 'T18', type expected
--/mpl/list/aux_/preprocessed/plain/list20.hpp(144) : see declaration of 'boost::mpl::list19'
--/mpl/list/aux_/preprocessed/plain/list20.hpp(167) : see reference to class template instantiation 'boost::mpl::list20<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,__formal>' being compiled
--/mpl/list/aux_/preprocessed/plain/list20.hpp(164): error C3203: 'list19' : unspecialized class template can't be used as a template argument for template parameter 'Next', expected a real type
--/mpl/list/aux_/preprocessed/plain/list20.hpp(164): error C2955: 'boost::mpl::list19' : use of class template requires template argument list
--/mpl/list/aux_/preprocessed/plain/list20.hpp(144) : see declaration of 'boost::mpl::list19'
--/mpl/list/aux_/preprocessed/plain/list20.hpp(165): error C2955: 'boost::mpl::l_item' : use of class template requires template argument list
--/mpl/list/aux_/item.hpp(30) : see declaration of 'boost::mpl::l_item'
--/mpl/aux_/preprocessed/plain/list.hpp(20): error C2143: syntax error : missing ',' before 'string'
--/mpl/aux_/preprocessed/plain/list.hpp(14): error C3747: missing default template parameter : parameter 20
--/mpl/aux_/preprocessed/plain/list.hpp(31): error C2975: 'boost::mpl::list' : invalid template argument for 'unnamed-parameter', expected compile-time constant expression
--/mpl/aux_/preprocessed/plain/list.hpp(22) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(34): error C2913: explicit specialization; 'boost::mpl::list' is not a specialization of a class template
--/mpl/aux_/preprocessed/plain/list.hpp(46): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(43) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(58): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(55) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(70): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(67) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(82): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(79) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(94): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(91) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(107): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(104) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(120): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(117) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(133): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(130) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(146): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(143) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(159): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(156) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(173): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(170) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(187): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(184) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(201): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(198) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(215): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(212) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(231): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(226) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(249): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(243) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(267): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(261) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(285): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(279) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(303): error C2976: 'boost::mpl::list' : too few template arguments
--/mpl/aux_/preprocessed/plain/list.hpp(297) : see declaration of 'boost::mpl::list'
--/mpl/aux_/preprocessed/plain/list.hpp(311): error C2143: syntax error : missing ',' before 'string'
--/mpl/vector/aux_/preprocessed/plain/vector20.hpp(1020): error C2143: syntax error : missing ',' before 'string'
--/mpl/vector/aux_/preprocessed/plain/vector20.hpp(1045): error C2059: syntax error : 'string'
--/mpl/vector/aux_/preprocessed/plain/vector20.hpp(1052) : see reference to class template instantiation 'boost::mpl::vector20<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,__formal>' being compiled
--/mpl/vector/aux_/preprocessed/plain/vector20.hpp(1045): error C2238: unexpected token(s) preceding ';'
--/mpl/vector/aux_/preprocessed/plain/vector20.hpp(1049): error C2059: syntax error : 'string'
--/mpl/vector/aux_/preprocessed/plain/vector20.hpp(1049): error C2238: unexpected token(s) preceding ';'
--/mpl/vector/aux_/preprocessed/plain/vector20.hpp(1072): error C2975: 'boost::mpl::vector20' : invalid template argument for 'unnamed-parameter', expected compile-time constant expression
--/mpl/vector/aux_/preprocessed/plain/vector20.hpp(1023) : see declaration of 'boost::mpl::vector20'
--/mpl/vector/aux_/preprocessed/plain/vector20.hpp(1073) : see reference to class template instantiation 'boost::mpl::push_front_impl<boost::mpl::aux::vector_tag<N>>::apply<Vector,T>' being compiled
          with
          [
              N=19
          ]
--/mpl/vector/aux_/preprocessed/plain/vector20.hpp(1114): error C2975: 'boost::mpl::vector20' : invalid template argument for 'unnamed-parameter', expected compile-time constant expression
--/mpl/vector/aux_/preprocessed/plain/vector20.hpp(1023) : see declaration of 'boost::mpl::vector20'
--/mpl/vector/aux_/preprocessed/plain/vector20.hpp(1115) : see reference to class template instantiation 'boost::mpl::push_back_impl<boost::mpl::aux::vector_tag<N>>::apply<Vector,T>' being compiled
          with
          [
              N=19
          ]
--/mpl/aux_/preprocessed/plain/vector.hpp(20): error C2143: syntax error : missing ',' before 'string'
--/mpl/aux_/preprocessed/plain/vector.hpp(14): error C3747: missing default template parameter : parameter 20
--/mpl/aux_/preprocessed/plain/vector.hpp(31): error C2975: 'boost::mpl::vector' : invalid template argument for 'unnamed-parameter', expected compile-time constant expression
--/mpl/aux_/preprocessed/plain/vector.hpp(22) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(34): error C2913: explicit specialization; 'boost::mpl::vector' is not a specialization of a class template
--/mpl/aux_/preprocessed/plain/vector.hpp(46): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(43) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(58): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(55) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(70): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(67) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(82): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(79) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(94): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(91) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(107): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(104) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(120): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(117) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(133): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(130) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(146): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(143) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(159): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(156) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(173): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(170) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(187): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(184) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(201): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(198) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(215): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(212) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(231): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(226) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(249): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(243) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(267): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(261) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(285): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(279) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(303): error C2976: 'boost::mpl::vector' : too few template arguments
--/mpl/aux_/preprocessed/plain/vector.hpp(297) : see declaration of 'boost::mpl::vector'
--/mpl/aux_/preprocessed/plain/vector.hpp(311): error C2143: syntax error : missing ',' before 'string'
--/math/policies/policy.hpp(406): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(440) : see reference to class template instantiation 'boost::math::policies::policy<A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13>' being compiled
--/math/policies/policy.hpp(406): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(407): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(407): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(408): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(408): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(409): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(409): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(410): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(410): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(411): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(411): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(412): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(412): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(413): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(413): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(418): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(418): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(419): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(419): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(425): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(425): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(426): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(426): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(430): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(430): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(434): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(434): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(438): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(438): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(439): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(439): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(514): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(588) : see reference to class template instantiation 'boost::math::policies::normalise<Policy,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13>' being compiled
--/math/policies/policy.hpp(514): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(515): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(515): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(516): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(516): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(517): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(517): error C2955: 'boost::mpl::list' : use of class template requires template argument list
--/mpl/aux_/preprocessed/plain/list.hpp(314) : see declaration of 'boost::mpl::list'
--/math/policies/policy.hpp(518): error C3203: 'list' : unspecialized class template can't be used as a template argument for template parameter 'Seq', expected a real type
--/math/policies/policy.hpp(518): fatal error C1003: error count exceeds 100; stopping compilation

What have I done wrong ?
TIA
Jean



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