mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 13:42:48 +00:00
20 lines
322 B
C++
20 lines
322 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <boost/filesystem.hpp>
|
|
|
|
|
|
#ifdef UNICODE
|
|
typedef std::wstring tstring;
|
|
inline tstring getTString(const boost::filesystem::path& p)
|
|
{
|
|
return p.wstring();
|
|
}
|
|
#else
|
|
typedef std::string tstring;
|
|
inline tstring getTString(const boost::filesystem::path& p)
|
|
{
|
|
return p.string();
|
|
}
|
|
#endif
|