Skip to content

Commit 0354ac3

Browse files
committed
Use unsigned char instead of std::byte for C++14 compatibility
1 parent 04dc6e9 commit 0354ac3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/fplus/maybe.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class maybe {
240240
}
241241
}
242242
bool is_present_;
243-
alignas(T) std::byte value_[sizeof(T)];
243+
alignas(T) unsigned char value_[sizeof(T)];
244244
};
245245

246246
// API search type: is_just : Maybe a -> Bool

include_all_in_one/include/fplus/fplus.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2797,7 +2797,7 @@ class maybe {
27972797
}
27982798
}
27992799
bool is_present_;
2800-
alignas(T) std::byte value_[sizeof(T)];
2800+
alignas(T) unsigned char value_[sizeof(T)];
28012801
};
28022802

28032803
// API search type: is_just : Maybe a -> Bool

0 commit comments

Comments
 (0)