Re: using directives in headers

2016-06-26 Thread Georg Baum
Guillaume Munch wrote: > Agreed. While the only advices to avoid "using" in headers I could find > are about "using namespace", I do not see a reason either not to have as > a rule what you wrote. IMHO the only difference between using complete namespaces or single symbols is statistics: For

Re: using directives in headers

2016-06-25 Thread Richard Heck
On 06/25/2016 03:56 PM, Georg Baum wrote: > I recently stumbled upon > > using std::shared_ptr; > > or > > lyx::support::FileName; > > in header files (e.g. TocBackend.h). The shared_ptr was introduced as part > of the lyx::shared_ptr removal (which did either point to boost or std), but > there

Re: using directives in headers

2016-06-25 Thread Guillaume Munch
Le 25/06/2016 20:56, Georg Baum a écrit : I recently stumbled upon using std::shared_ptr; or lyx::support::FileName; in header files (e.g. TocBackend.h). The shared_ptr was introduced as part of the lyx::shared_ptr removal (which did either point to boost or std), but there are other hits as

using directives in headers

2016-06-25 Thread Georg Baum
I recently stumbled upon using std::shared_ptr; or lyx::support::FileName; in header files (e.g. TocBackend.h). The shared_ptr was introduced as part of the lyx::shared_ptr removal (which did either point to boost or std), but there are other hits as well. While I understand that in this