Skip to content

Commit

Permalink
Let's try to satisfy cranky compilers/stdlibs
Browse files Browse the repository at this point in the history
  • Loading branch information
Znurre committed Aug 11, 2024
1 parent c0fea50 commit 074c0a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
18 changes: 10 additions & 8 deletions fluenc-lang/ast/type_name_node.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#include "type_name_node.hpp"

using namespace std::literals::string_literals;

type_name_t default_type_name::int32()
{
static default_type_name instance {
.ast = {},
.names = { "i32" },
.names = { "i32"s },
};

return &instance;
Expand All @@ -14,7 +16,7 @@ type_name_t default_type_name::int64()
{
static default_type_name instance {
.ast = {},
.names = { "i64" },
.names = { "i64"s },
};

return &instance;
Expand All @@ -24,7 +26,7 @@ type_name_t default_type_name::f32()
{
static default_type_name instance {
.ast = {},
.names = { "f32" },
.names = { "f32"s },
};

return &instance;
Expand All @@ -34,7 +36,7 @@ type_name_t default_type_name::uint32()
{
static default_type_name instance {
.ast = {},
.names = { "u32" },
.names = { "u32"s },
};

return &instance;
Expand All @@ -44,7 +46,7 @@ type_name_t default_type_name::byte()
{
static default_type_name instance {
.ast = {},
.names = { "u8" },
.names = { "u8"s },
};

return &instance;
Expand All @@ -54,7 +56,7 @@ type_name_t default_type_name::boolean()
{
static default_type_name instance {
.ast = {},
.names = { "bool" },
.names = { "bool"s },
};

return &instance;
Expand All @@ -64,7 +66,7 @@ type_name_t default_type_name::string()
{
static default_type_name instance {
.ast = {},
.names = { "string" },
.names = { "string"s },
};

return &instance;
Expand All @@ -74,7 +76,7 @@ type_name_t default_type_name::without()
{
static default_type_name instance {
.ast = {},
.names = { "without" },
.names = { "without"s },
};

return &instance;
Expand Down
1 change: 1 addition & 0 deletions fluenc-lang/ast/type_name_node.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <memory>
#include <string>
#include <variant>
#include <vector>

Expand Down

0 comments on commit 074c0a0

Please sign in to comment.