refactor InitPaths()

get rid of MAX_OS_PATH
This commit is contained in:
Garux
2021-09-17 19:50:36 +03:00
parent e22e6169c9
commit b78513f9f8
5 changed files with 117 additions and 208 deletions

View File

@@ -490,6 +490,14 @@ public:
typedef String< CopiedBuffer< DefaultAllocator<char> > > CopiedString;
/// \brief Writes CopiedString \p string to \p ostream.
template<typename TextOutputStreamType>
inline TextOutputStreamType& ostream_write( TextOutputStreamType& ostream, const CopiedString& string ){
ostream.write( string.c_str(), strlen( string.c_str() ) );
return ostream;
}
/// \brief A non-mutable string buffer which uses reference-counting to avoid unnecessary allocations.
template<typename Allocator>
class SmartBuffer : private Allocator