[LLVMdev] Compilation Failure

David Greene dag at cray.com
Tue Sep 25 11:53:23 PDT 2007


On Tuesday 25 September 2007 13:40, Bill Wendling wrote:

> I thought about doing this, but there's the potential for naming
> conflicts that won't be caught until a release build is done. :-( I

I considered this and figured that it was extremely unlikely in our code.
Certainly it's not a bullet-proof solution.

> wonder, though. Would it make sense to put the stream decls in their
> own namespace (say "namespace stream")? That way we could prevent
> naming conflicts and also this bad "gotcha"...

The problem is that you can't use "cerr" so conveniently unless you put
a "using stream::cerr" in Streams.h.  Maybe that's ok, though.  I'd be willing
to go this route.

                                          -Dave



More information about the llvm-dev mailing list