Fix shared_ptr usage

The std::shared_ptr type was used instead of std::tr1::shared_ptr. A NULL
pointer was also implicitly cast into a Backend pointer which caused
compilation problems on some platforms with the tr1 version of shared_ptr.
This commit is contained in:
Markus Mäkelä 2017-03-28 22:01:50 +03:00
parent 6e218adc1d
commit a3396a06b8
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
using std::list;
using std::set;
using std::string;
using std::shared_ptr;
using std::tr1::shared_ptr;
using maxscale::Buffer;

View File

@ -865,7 +865,7 @@ SBackend SchemaRouterSession::get_bref_from_dcb(DCB* dcb)
// This should not happen
ss_dassert(false);
return SBackend(NULL);
return SBackend(reinterpret_cast<Backend*>(NULL));
}
/**