Opened 11 years ago

Last modified 11 years ago

#6756 new Bugs

gcc gives compile error "error ‘boost_se_params_t_10::boost_se_param_t_0_10’ is not a type" in template function for ScopeExit.

Reported by: Lin, Yi-Li <record.nctu.cis91@…> Owned by: nasonov
Milestone: To Be Determined Component: scope_exit
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:

Description

When using ScopeExit, I found that gcc can't compile some sources. After error checking, gcc (4.4.3 in Ubuntu 10.04 and gcc 4.6.1 from MinGW) will raise compile error when I use ScopeExit in template functions. For the code can't compile by gcc, you can find it in attachment.

Attachments (1)

main.cpp (574 bytes ) - added by Lin, Yi-Li <record.nctu.cis91@…> 11 years ago.

Download all attachments as: .zip

Change History (3)

by Lin, Yi-Li <record.nctu.cis91@…>, 11 years ago

Attachment: main.cpp added

comment:1 by Steven Watanabe, 11 years ago

You should be using BOOST_SCOPE_EXIT_TPL.

in reply to:  1 comment:2 by Lin, Yi-Li <record.nctu.cis91@…>, 11 years ago

Replying to steven_watanabe:

You should be using BOOST_SCOPE_EXIT_TPL.

Thank you! The error is gone now. Sorry that I didn't read the reference clearly.

Note: See TracTickets for help on using tickets.