use std::unique_ptr instead of std::auto_ptr if available

This commit is contained in:
Guenter Obiltschnig 2016-10-16 14:00:10 +02:00
parent 20a6f25865
commit 31df37cf22

View File

@ -285,7 +285,11 @@ protected:
p.setBaseName(clazz);
}
#if __cplusplus < 201103L
std::auto_ptr<CodeWriter> pCodeWriter(createCodeWriter(page, clazz));
#else
std::unique_ptr<CodeWriter> pCodeWriter(createCodeWriter(page, clazz));
#endif
if (!_outputDir.empty())
{