Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for anonymous Sequence members
- Loading branch information
Sam
committed
Nov 7, 2019
1 parent
29786cc
commit 6f616f2
Showing
9 changed files
with
1,520 additions
and
1,276 deletions.
There are no files selected for viewing
Submodule abseil-cpp
updated
241 files
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,10 @@ | ||
#include "autogen/anonymous_members.hpp" | ||
|
||
#include "catch2/catch.hpp" | ||
|
||
static_assert(std::is_same<decltype(fast_ber::Anonymous::Anon::anonymous_member_0), fast_ber::Null<>>::value, "Anon"); | ||
static_assert(std::is_same<decltype(fast_ber::Anonymous::Anon::anonymous_member_1), | ||
fast_ber::SequenceOf<fast_ber::OctetString<>>>::value, | ||
"Anon"); | ||
static_assert(std::is_same<decltype(fast_ber::Anonymous::Anon::anonymous_member_2), fast_ber::Integer<>>::value, | ||
"Anon"); |
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,15 @@ | ||
Anonymous | ||
|
||
DEFINITIONS EXPLICIT TAGS ::= | ||
|
||
BEGIN | ||
|
||
Anon ::= SEQUENCE | ||
{ | ||
NULL, | ||
SEQUENCE OF OCTET STRING, | ||
..., | ||
INTEGER | ||
} | ||
|
||
END |
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,14 @@ | ||
Defaults | ||
|
||
DEFINITIONS EXPLICIT TAGS ::= | ||
|
||
BEGIN | ||
|
||
SequenceWithDefault ::= SEQUENCE | ||
{ | ||
flag BOOLEAN DEFAULT FALSE, | ||
seq SEQUENCE OF INTEGER, | ||
... | ||
} | ||
|
||
END |