
18 Feb
2004
18 Feb
'04
2:14 p.m.
On Wednesday 18 February 2004 06:23 am, Pavel Vozenilek wrote:
[Problem with <bind.hpp> and <function.h> on BCC 6.4]
I found what;s the cause: <boost/mem_fn.hpp> is included by <function.hpp> and so if one writes:
---------------- #include <boost/function.hpp> #define BOOST_MEM_FN_ENABLE_FASTCALL #include <boost/bind.hpp> ----------------
it results with Bind using differently pre-processed <mem_fn.hpp> than it is expected.
Bellow is solution to produce clean error message when this situation happens:
Thanks. Peter, can you commit this or something like it? Doug