Boost logo

Boost Users :

Subject: Re: [Boost-users] Newbie question filesystem
From: Dan Bloomquist (danb_at_[hidden])
Date: 2010-05-06 14:40:20


Igor R wrote:
>> From what I see, basic_path will with< std::string, path_traits> ( from
>> path.hpp). I'm deriving from basic_path and using that constructor.
>>
> I don't know what you mean by saying "using that constructor", but
> note that in C++ constructors are not inherited.
>

Thanks Igor,
I guess I need a good head slap. The error was cryptic. This works:

template<class String, class Traits> class basic_vpath
     :public basic_path< String, Traits >
{
public:
       basic_vpath( const string_type & s )
           :basic_path( s )
       { }

       basic_vpath( const value_type * s )
           :basic_path( s )
       { }

};

Best, Dan.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net