|
Boost : |
From: Jared McIntyre (jmcintyre_at_[hidden])
Date: 2007-04-20 17:27:14
I just started testing the boost 1.34 (RC_1_34_0) cvs branch in our main code line. We're getting a lot of warnings
with bind. I'm using Visual Studio 8 SP1. This is a test case that reproduces the warning:
#include <boost/bind.hpp>
#include <string>
class WarningTest
{
public:
WarningTest(void)
{
boost::bind(&WarningTest::Function, this);
}
std::string Function()
{
}
};
The warning I get is:
WarningTest.cpp
c:\msc\ThirdParty\boost_cvs\boost\boost/bind.hpp(1575) : warning C4180: qualifier applied to function type has no
meaning; ignored
c:\msc\ThirdParty\boost_cvs\boost\boost/bind.hpp(1609) : see reference to class template instantiation
'boost::_bi::add_cref<Pm,I>' being compiled
with
[
Pm=std::basic_string<char,std::char_traits<char>,std::allocator<char>> (__thiscall WarningTest::*
)(void),
I=1
]
c:\msc\renal\deliverables source\properties\WarningTest.h(11) : see reference to class template instantiation
'boost::_bi::dm_result<Pm,A1>' being compiled
with
[
Pm=std::string (__thiscall WarningTest::* )(void),
A1=WarningTest *
]
I'm not getting these warnings with 1.33.
Jared
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk