<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>Given a class:<br><br>///////////////////<br>class CLog<br>{<br>public:<br>void Log( const boost::format& );<br>void Log( const std::string& );<br>};<br><br>void (CLog::*LogS)(const std::string&) = &CLog::Log;<br>void (CLog::*LogF)(const boost::format&) = &CLog::Log;<br>////////////////////<br><br>And this module Macro:<br><br>///////////////////<br><br>BOOST_PYTHON_MODULE(HybridLog)<br>{<br>using namespace boost::python;<br><br>class_<CLog>("logInterface")<br>.def("Log", &LogS)<br>.def("Log", &LogF)<br>;<br>}<br>///////////////////<br><br>How come I am getting these errors:<br><br>/boost/python/class.hpp:536: error: no matching function for call to <br>‘get_signature(void (CLog::**&)(const std::string&), CLog*)’<br>/boost/python/class.hpp:536: error: no matching function for call to <br>‘get_signature(void (CLog::**&)(const std::string&), CLog*)’<br><br>I've tried all sorts of variations!<br><br>Thanks<br><br>Simon<br><br>-- <br>Linux Counter: User# 424693 <br><br><br><br /><hr />Find out how to make Messenger your very own TV! <a href='http://clk.atdmt.com/UKM/go/101719648/direct/01/' target='_new'>Try it Now!</a></body>
</html>