Boost logo

Boost Users :

From: Johan Nilsson (johan.nilsson_at_[hidden])
Date: 2003-08-22 02:21:41

"Johan Nilsson" <johan.nilsson_at_[hidden]> wrote in message
> Hi,


> -------------------------------------------------------------------------
> res = pthread_key_create(&m_key, cleanup);
> .....................................^
> %CXX-E-INCOMPATIBLEPRM, argument of type "void (*)(void *)" is
> with parameter of type "void (*)(void *) C"
> at line number 192 in file
> --------------------------------------------------------------------------

> ---
Reading paragraph 7.5 [Linkage specifications] in the standard it looks like
the compiler is right; "... Two function types with different language
linkage are distinct types even if they are otherwise identical ...". Or am
I (as usual, perhaps) misinterpreting the standard? (How come that the
compiler is not complaining when we call C functions from C++ :-)
If this is correct, perhaps implementing a fix would be in place?
// Johan

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at