Boost logo

Boost Users :

From: dick.bridges_at_[hidden]
Date: 2002-09-26 13:43:37


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_at_cs.rpi.e To: Boost-Users_at_[hidden]
                      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_at_[hidden] 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_at_[hidden]>

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


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