On Mon, Dec 03, 2007 at 11:14:15AM +0100, Jean-Marc Lasgouttes wrote:
> Andre Poenitz <[EMAIL PROTECTED]> writes:
> 
> > Should we discuss allowing 'using namespace std;' in .cpp files?
> >
> > Quite few changes we do are related to the 'using' lines, and there
> > is no actual gain. If there were a real conflict we'd jsut rename our
> > stuff (and there is none that I am aware of, actually)
> 
> I do not care much but have nevertheless a question: if we work inside
> the std:: and lyx:: namespace, what are we protecting ourselves from
> by using namespaces?

Mainly from conflicts between std::foo and lyx::foo. There is currently
no such conflict as fa as I can tell, the potential of future is small
as we use camelBump and not std_like identifiers and we have full
control over our names (as opposed to, say, library vendors that need
to keep old identifiers around), so we can easily switch even if a
std::BufferView would show up at some point of time.

So basically not much gain (if any at all), but quite a bit of
housekeeping...

Andre'

Reply via email to