MCPcopy Create free account
hub / github.com/boostorg/filesystem / derived_from_path

Class derived_from_path

test/path_test.cpp:92–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90namespace {
91
92class derived_from_path :
93 public fs::path
94{
95public:
96 derived_from_path() {}
97 derived_from_path(derived_from_path const& that) : fs::path(static_cast< fs::path const& >(that)) {}
98 template< typename T >
99 derived_from_path(T const& that) : fs::path(that) {}
100
101 derived_from_path& operator= (derived_from_path const& that)
102 {
103 *static_cast< fs::path* >(this) = that;
104 return *this;
105 }
106 template< typename T >
107 derived_from_path& operator= (T const& that)
108 {
109 *static_cast< fs::path* >(this) = that;
110 return *this;
111 }
112};
113
114class convertible_to_path
115{

Callers 2

construction_testsFunction · 0.85
compare_testsFunction · 0.85

Calls

no outgoing calls

Tested by 2

construction_testsFunction · 0.68
compare_testsFunction · 0.68