summaryrefslogtreecommitdiff
path: root/modules/core/c++/abstract
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/c++/abstract')
-rw-r--r--modules/core/c++/abstract/schema.hpp6
-rw-r--r--modules/core/c++/abstract/stringify_schema.hpp20
2 files changed, 10 insertions, 16 deletions
diff --git a/modules/core/c++/abstract/schema.hpp b/modules/core/c++/abstract/schema.hpp
index 8bc23b4..89d9c2e 100644
--- a/modules/core/c++/abstract/schema.hpp
+++ b/modules/core/c++/abstract/schema.hpp
@@ -42,12 +42,6 @@ using Float16 = Primitive<FloatingPoint,2u>;
using Float32 = Primitive<FloatingPoint,4u>;
using Float64 = Primitive<FloatingPoint,8u>;
-template<typename Sch, uint64_t StorageBytes, uint64_t InterfaceBytes>
-struct MixedPrecision {
- using Meta = Void;
- using Inner = Sch;
-};
-
template<typename T, uint64_t... Dims>
struct FixedArray {
using Meta = Void;
diff --git a/modules/core/c++/abstract/stringify_schema.hpp b/modules/core/c++/abstract/stringify_schema.hpp
index 3d6b1d1..dd218d0 100644
--- a/modules/core/c++/abstract/stringify_schema.hpp
+++ b/modules/core/c++/abstract/stringify_schema.hpp
@@ -10,36 +10,36 @@ template<class T>
struct schema_to_string_helper {
static_assert(always_false<T>, "schema_to_string_helper specialization not handled.");
- static constexpr string_literal apply(){
- return {};
+ static constexpr auto apply(){
+ return string_literal{""};
}
};
template<>
struct schema_to_string_helper<sch::SignedInteger> final {
- static constexpr string_literal apply(){
- return "SignedInteger";
+ static constexpr auto apply(){
+ return string_literal{"SignedInteger"};
}
};
template<>
struct schema_to_string_helper<sch::UnsignedInteger> final {
- static constexpr string_literal apply(){
- return "UnsignedInteger";
+ static constexpr auto apply(){
+ return string_literal{"UnsignedInteger"};
}
};
template<>
struct schema_to_string_helper<sch::FloatingPoint> final {
- static constexpr string_literal apply(){
- return "FloatingPoint";
+ static constexpr auto apply(){
+ return string_literal{"FloatingPoint"};
}
};
template<typename T, uint64_t N>
struct schema_to_string_helper<sch::Primitive<T,N>> final {
- static constexpr string_literal apply(){
- return "Primitive<"+schema_to_string_helper<T>::apply()+","+N+">";
+ static constexpr auto apply(){
+ return string_literal{"Primitive<"}+schema_to_string_helper<T>::apply()+string_literal{","}+N+string_literal{">"};
}
};
}