Implement value printing for std::filesystem::path

This commit is contained in:
Devajith Valaparambil Sreeramaswamy 2024-02-13 22:45:00 +01:00 committed by jenkins
parent fa648e8fa5
commit 75b1314f6b

View File

@ -16,6 +16,9 @@
#include <cling/Interpreter/Visibility.h>
#if __cplusplus >= 201703L
#include <filesystem>
#endif
#include <memory>
#if __cplusplus >= 202002L
#include <version>
@ -241,6 +244,13 @@ namespace cling {
return collectionPrinterInternal::printValue_impl(obj);
}
#if __cplusplus >= 201703L
// For std::filesystem::path
inline std::string printValue(const std::filesystem::path* obj) {
return obj->string();
}
#endif
// Arrays
template<typename T, size_t N>
inline std::string printValue(const T (*obj)[N]) {