Le 08/06/16 à 20:21, Guillaume Munch a écrit :
I'd rather include only the standard headers to obtain unique_ptr, and
then include support/make_unique.h when we explicitly need it.


When you have unique_ptr, you also want to have make_unique without
hassle. The reason is that apart from some corner cases, make_unique is
never really necessary, more of a convenience.

But none of your patches use it, AFAIK.

So I prefer to have
unique_ptr.h open unique_ptr in the lyx namespace for me and only have
to include one header. But, you are always free to just include <memory>.

I thought that that the idea was to use C++11 natively instead of our homegrown headers. So I would put only things that we define ourselves in support headers. Having one more header to include make it clear of what we have to do when the feature is natively supported.

But then I am not really a C++(11) expert.

JMarc

Reply via email to