Use *_t and *_v trait helpers from C++17 STL (#731)
This commit is contained in:
@@ -65,7 +65,7 @@ public:
|
||||
const std::string& assetPath,
|
||||
float pixelRatio = 1,
|
||||
MapMode mode = MapMode::Static,
|
||||
typename std::enable_if<std::is_same<T, MainResourceLoader>::value>::type* = nullptr)
|
||||
typename std::enable_if_t<std::is_same_v<T, MainResourceLoader>>* = nullptr)
|
||||
: fileSource(std::make_shared<T>(ResourceOptions().withCachePath(cachePath).withAssetPath(assetPath), ClientOptions())),
|
||||
frontend(pixelRatio),
|
||||
map(frontend,
|
||||
|
||||
Reference in New Issue
Block a user