|
Boost : |
From: larsbj_at_[hidden]
Date: 2001-10-15 01:57:53
larsbj_at_[hidden] writes:
| Warnings about unused arguments:
|
| --- boost/libs/thread/src/mutex.cpp Tue Sep 25 02:04:45 2001
| +++ local/boost/libs/thread/src/mutex.cpp Thu Oct 11 22:50:08 2001@@ -199,7 +199,7 @@
ok, fixed in CVS.
| Compile error on the cast:
|
| --- boost/libs/thread/src/once.cpp Tue Sep 25 02:04:45 2001
| +++ local/boost/libs/thread/src/once.cpp Thu Oct 11 22:46:52 2001@@ -38,7 +38,8 @@
I still get errors on the cast. I am not sure if this is a bug in gcc
2.96 or a real problem with the code. (either way it is a problem...)
static void do_once()
{
once_callback* cb = reinterpret_cast<once_callback>(pthread_getspecific(key));
(**cb)();
}
gives this compiler message:
once.cpp: In function `void do_once ()':
once.cpp:41: ISO C++ forbids casting between pointer-to-function and
pointer-to-object
once.cpp:41: cannot convert `void (*) ()' to `void (**) ()' in
initialization
-- Lgb
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk