-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gbc c++] Do not apply export attrib. to generics
Currently, the `--export-attribute` is used to mark all static `bond::Metadata` fields in a compile-time `Schema` object, including when the type is a template, which is not correct. This change has `gbc` skip the attribute in such cases.
- Loading branch information
1 parent
c586483
commit cfbd417
Showing
3 changed files
with
10 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
namespace examples.dll | ||
|
||
struct Item | ||
struct Item<T> | ||
{ | ||
0: string str = "default string value"; | ||
1: list<uint32> numbers; | ||
0: string str = "default string value"; | ||
1: list<T> numbers; | ||
} | ||
|
||
struct MyStruct | ||
{ | ||
0: vector<Item> items; | ||
1: bonded<Item> item; | ||
0: vector<Item<uint32>> items; | ||
1: bonded<Item<uint32>> item; | ||
} |
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