Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2001-10-08 11:35:37

on 10/8/01 9:13 AM, williamkempf_at_[hidden] at williamkempf_at_[hidden]

>> 2) For some reason, "thrd" is parsed as a function pointer,
>> not as an object of class boost::thread.
> Interesting. Any standards experts wich to comment on whether this
> is a VC++ bug or a mistake in the example code? I can change the
> code to use two lines in the documentation.

It's a mistake in the example code. This is one of the most common C++
mistakes. The rule is sometimes summarized as, "if it looks like a function
declaration, it is a function declaration". Reams have been written about
this idiosyncrasy of C++ syntax.

    -- Darin

Boost list run by bdawes at, gregod at, cpdaniel at, john at