Skip to content

Commit

Permalink
Open-source CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Mitchell committed Oct 20, 2021
1 parent 4e3064a commit 20ca243
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/EASTL/internal/type_transformations.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ namespace eastl
template <> struct make_unsigned<char> { typedef unsigned char type; };
#endif

#if defined(EA_CHAR8_UNIQUE) && EA_CHAR8_UNIQUE
template <> struct make_unsigned<char8_t> { typedef unsigned char type; };
#endif

template <typename T>
struct make_unsigned<const T>
{
Expand Down
4 changes: 4 additions & 0 deletions test/source/TestVariant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ EA_NO_INLINE int TestVariantVisitNoInline(const eastl::variant<int, bool, unsign
struct MyVisitor
{
MyVisitor() = delete;
MyVisitor(bool& b) : mVisited(b) {}

void operator()(int) { mVisited = true; }
void operator()(bool) { mVisited = true; }
Expand All @@ -681,6 +682,7 @@ EA_NO_INLINE int TestVariantVisit2NoInline(const eastl::variant<int, bool>& v0,
struct MyVisitor
{
MyVisitor() = delete;
MyVisitor(bool& b) : mVisited(b) {}

void operator()(int, int) { mVisited = true; }
void operator()(bool, int) { mVisited = true; }
Expand All @@ -706,6 +708,7 @@ EA_NO_INLINE int TestVariantVisit3tNoInline(const eastl::variant<int, bool>& v0,
struct MyVisitor
{
MyVisitor() = delete;
MyVisitor(bool& b) : mVisited(b) {}

void operator()(int, int, int) { mVisited = true; }
void operator()(bool, int, int) { mVisited = true; }
Expand Down Expand Up @@ -979,6 +982,7 @@ int TestVariantVisitor()
struct MultipleVisitor
{
MultipleVisitor() = delete;
MultipleVisitor(bool& b) : mVisited(b) {}

void operator()(int, int) { mVisited = true; }
void operator()(int, bool) {}
Expand Down

0 comments on commit 20ca243

Please sign in to comment.