repr 0.1
Reconstructable string representations and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
reflection/reflect.h
Go to the documentation of this file.
#pragma once
#include <string>
#include "category.h"
#include "aggregate.h"
#include "array.h"
#include "enum.h"
#include "init_list.h"
#include "pair.h"
#include "variant.h"
#include "custom.h"
namespace librepr {
template <typename T>
struct Reflect : category::Type<T>{
using type = T;
template <typename V>
static void visit(V&& visitor, T& obj) {
}
};
template <>
using type = char const*;
template <typename V>
static void visit(V&& visitor, char const* obj) {
}
};
template <typename T>
// TODO check Settings -> ADL -> member function -> builtin
template <typename T>
} // namespace librepr