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

Class convertible_to_path

test/path_test.cpp:114–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112};
113
114class convertible_to_path
115{
116private:
117 fs::path m_path;
118
119public:
120 convertible_to_path() {}
121 convertible_to_path(convertible_to_path const& that) : m_path(that.m_path) {}
122 template< typename T >
123 convertible_to_path(T const& that) : m_path(that) {}
124
125 convertible_to_path& operator= (convertible_to_path const& that)
126 {
127 m_path = that.m_path;
128 return *this;
129 }
130 template< typename T >
131 convertible_to_path& operator= (T const& that)
132 {
133 m_path = that;
134 return *this;
135 }
136
137 operator fs::path() const { return m_path; }
138};
139
140//! Test type to verify that the conversion to path is preferred (https://github.com/boostorg/filesystem/issues/326)
141class convertible_to_path_and_strings

Callers 1

construction_testsFunction · 0.85

Calls

no outgoing calls

Tested by 1

construction_testsFunction · 0.68