Boost logo

Boost :

Subject: [boost] [SCOPE_EXIT] compiler errors for structure members
From: Sid Sacek (ssacek_at_[hidden])
Date: 2009-04-16 15:00:41


      struct {

            int one;

      } test ;

 

      test.one = 55;

 

      BOOST_SCOPE_EXIT( ( test.one ) )

      {

      }

      BOOST_SCOPE_EXIT_END

 

 

The above code gives me lots of compiler errors. Is there a special
syntax I have to provide to be able to use structure members?

 

Thanks,

-Sid Sacek

 

The errors I get using MSVC 2008 are:

 

error C2065: 'boost_se_tag_0_12' : undeclared identifier

error C2144: syntax error : 'int' should be preceded by ')'

error C2059: syntax error : ')'

error C2065: 'boost_se_tag_0_12' : undeclared identifier

error C2143: syntax error : missing ')' before 'constant'

error C2039: 'type' : is not a member of '`global namespace''

error C2653: 'boost_se_wrapped_t_0_12' : is not a class or namespace
name

error C2143: syntax error : missing ';' before '{'

error C2065: 'boost_se_param_t_0_12' : undeclared identifier

error C2065: 'boost_se_tag_0_12' : undeclared identifier

error C2065: 'boost_se_tag_0_12' : undeclared identifier

error C2143: syntax error : missing ',' before 'constant'

C2143: syntax error : missing ',' before ')'

error C2653: 'boost_se_params_t_12' : is not a class or namespace name

error C2143: syntax error : missing ';' before '{'

error C2143: syntax error : missing ';' before '}'

error C2143: syntax error : missing ';' before '}'

error C2143: syntax error : missing ',' before ')'

 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk