-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick Urbanke
committed
Jun 18, 2024
1 parent
b09f386
commit 84114c3
Showing
22 changed files
with
320 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#ifndef RFL_PARSING_TAGGEDUNIONWRAPPERNOPTR_HPP_ | ||
#define RFL_PARSING_TAGGEDUNIONWRAPPERNOPTR_HPP_ | ||
|
||
#include <type_traits> | ||
|
||
#include "../internal/StringLiteral.hpp" | ||
#include "TaggedUnionWrapper.hpp" | ||
|
||
namespace rfl { | ||
namespace parsing { | ||
|
||
template <class T> | ||
struct tagged_union_wrapper_no_ptr; | ||
|
||
template <class T> | ||
struct tagged_union_wrapper_no_ptr { | ||
using Type = T; | ||
}; | ||
|
||
template <class T, class TagType, internal::StringLiteral _discriminator, | ||
bool _as_const_pointer> | ||
struct tagged_union_wrapper_no_ptr< | ||
TaggedUnionWrapperNoFields<T, TagType, _discriminator, _as_const_pointer>> { | ||
using Type = TaggedUnionWrapperNoFields<T, TagType, _discriminator, false>; | ||
}; | ||
|
||
template <class T, class TagType, internal::StringLiteral _discriminator, | ||
bool _as_const_pointer> | ||
struct tagged_union_wrapper_no_ptr<TaggedUnionWrapperWithFields< | ||
T, TagType, _discriminator, _as_const_pointer>> { | ||
using Type = TaggedUnionWrapperWithFields<T, TagType, _discriminator, false>; | ||
}; | ||
|
||
template <class T> | ||
using tagged_union_wrapper_no_ptr_t = | ||
typename tagged_union_wrapper_no_ptr<std::remove_cvref_t<T>>::Type; | ||
|
||
} // namespace parsing | ||
} // namespace rfl | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.