Re: [Boost-Users] bind: I just keep trying...
Well, that helped A LOT. The only warnings I get now are: <warnings> c:\boost\function.hpp(451) : warning C4097: typedef-name 'base_type' used as synonym for class-name 'function<R,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>::function1<R,T0, `template-parameter268',`template-parameter269',`template-parameter270'>' c:\boost\function.hpp(497) : see reference to class template instantiation 'boost::function<R,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>' being compiled c:\boost\function.hpp(452) : warning C4097: typedef-name 'base_type' used as synonym for class-name 'function<R,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>::function1<R,T0, `template-parameter268',`template-parameter269',`template-parameter270'>' c:\boost\function.hpp(497) : see reference to class template instantiation 'boost::function<R,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>' being compiled c:\boost\function.hpp(453) : warning C4097: typedef-name 'base_type' used as synonym for class-name 'function<R,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>::function1<R,T0, `template-parameter268',`template-parameter269',`template-parameter270'>' c:\boost\function.hpp(497) : see reference to class template instantiation 'boost::function<R,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>' being compiled </warnings> The warning level is 4: I'm paranoid. Can these safely be ignored? Douglas Gregor <gregod@cs.rpi.e To: Boost-Users@yahoogroups.com du> cc: Subject: Re: [Boost-Users] bind: I just keep trying... 09/26/2002 10:09 AM Please respond to Boost-Users On Thursday 26 September 2002 01:02 pm, dick.bridges@tais.com wrote:
Thanks. I changed the map to: typedef map<session_id, boost::function<long, Y*, X*> > MyMessageMap;
No errors but enough warnings to choke a horse. Have I just been nailed by VC6SP4? If so, I think I'll just give up and map the session-ids to Y*s. %>(
Thanks in advance for any suggestions.
I've never seen that warning before. What warning level are you using? Anyway, just change boost::function<long, Y*, X*> to boost::function2<long, Y*, X*> Then you'll be in conformance with upcoming Boost releases (Boost 1.29.0 deprecates the former syntax), and the warning should disappear. Doug Info: <http://www.boost.org> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl> Unsubscribe: <mailto:boost-users-unsubscribe@yahoogroups.com> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
On Thursday 26 September 2002 02:43 pm, dick.bridges@tais.com wrote:
Well, that helped A LOT. The only warnings I get now are:
<warnings> c:\boost\function.hpp(451) : warning C4097: typedef-name 'base_type' used as synonym for class-name 'function<R,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>::function1<R,T0, `template-parameter268',`template-parameter269',`template-parameter270'>' c:\boost\function.hpp(497) : see reference to class template instantiation 'boost::function<R,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>' being compiled [snip] </warnings>
The warning level is 4: I'm paranoid. Can these safely be ignored?
Yes, they can be ignored. I'll see if I can get them suppressed in 1.29.0 (they'll be gone after 1.29.0 because of other changes). Doug
participants (2)
-
dick.bridges@tais.com
-
Douglas Gregor