Consider this C++ code :
template
class Step
{
public:
using Session_ptr = boost::shared_ptr;
protected:
Session_pt
This is because in StartSession
class your Session_ptr
type is seen as non dependent name, so it is being looked up with out instatiation of base class which is dependent. This is why you need to make reference to this name dependent some how, for example by qualifying it in a way as g++ suggests in warnings:
note: (perhaps 'typename Step >::Session_ptr' was intended)
btw. some compilers like Visual Studio (I checked it with 2015 now) will happily compile your code. This is because VS does not implement properly a two-phase template instantiation. See here for more on that: What exactly is "broken" with Microsoft Visual C++'s two-phase template instantiation?