Boost logo

Boost :

From: Yitzhak Sapir (ysapir_at_[hidden])
Date: 2002-01-31 07:46:01

MSVC getting confused about the precompiled headers with anonymous
namespace is a bug in MSVC. Anonymous namespace should have been
transparent with regards to precompiled headers. Therefore, if "static"
fixes it in MSVC, then that's all that is needed. Then you can #ifdef
it in MSVC and non-MSVC wouldn't see the static. My test seems to show
that declaring it static fixes it. So I'd be happy with that.

Does Borland have a problem with the non-static definitions in the
anonymous namespace in precompiled headers?

-----Original Message-----
From: John Maddock [mailto:John_Maddock_at_[hidden]]
Sent: Thursday, January 31, 2002 2:35 PM
To: INTERNET:boost_at_[hidden]
Subject: Re: [boost] boost bind/functional/reference wrapper/mem_fn

>Would declaring the placeholders 'static' solve the precompiled header
>problem? Technically, this kind of thing is deprecated, of course. ;-)

I doubt it - they will still generate code&data and for my compiler at
least (Borland) that will prevent precompiled headers from working.

- John Maddock

Info: Send unsubscribe requests to:

Your use of Yahoo! Groups is subject to

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