add filesystem path
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <source_location> // C++20
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <filesystem>
|
||||
#include "hack/utils/color.hpp"
|
||||
#include "hack/patterns/singleton.hpp"
|
||||
#include "hack/concepts/concepts.hpp"
|
||||
@@ -249,6 +250,10 @@ namespace hack
|
||||
// по этому пише так:
|
||||
print_t(std::any_cast<std::string>(value).c_str());
|
||||
}
|
||||
else if (value.type() == typeid(std::filesystem::path))
|
||||
print_t(std::any_cast<std::filesystem::path>(value).c_str());
|
||||
// конец HERE выше
|
||||
|
||||
else if (value.type() == typeid(int))
|
||||
print_t(std::any_cast<int>(value));
|
||||
else if (value.type() == typeid(double))
|
||||
|
||||
Reference in New Issue
Block a user