Skip to content

Fix Mutate() methods of Array<scalar/struct> (override 5508)#5526

Merged
aardappel merged 4 commits intogoogle:masterfrom
vglavnyy:svenk177_msvc_fix
Sep 23, 2019
Merged

Fix Mutate() methods of Array<scalar/struct> (override 5508)#5526
aardappel merged 4 commits intogoogle:masterfrom
vglavnyy:svenk177_msvc_fix

Conversation

@vglavnyy
Copy link
Copy Markdown
Contributor

This PR overrides #5508.
@svenk177 could you review changes?

…e#5508)

- Tag dispatching is used for implicit specialization
- Array<scalar> and Array<struct> have different iterators and accessors
- Array<scalar> and Array<struct> have different Mutate() methods
Copy link
Copy Markdown
Contributor

@svenk177 svenk177 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great 👍
Tested it with VS2017.

…e#5508)

- Tag dispatching is used for implicit specialization
- Array<scalar> and Array<struct> have different iterators and accessors
- Array<scalar> and Array<struct> have different Mutate() methods
@aardappel
Copy link
Copy Markdown
Collaborator

Thanks for putting it together, @vglavnyy !
CI error appears unrelated.

@aardappel aardappel merged commit cbdf82e into google:master Sep 23, 2019
@vglavnyy vglavnyy deleted the svenk177_msvc_fix branch September 29, 2019 14:16
LuckyRu pushed a commit to LuckyRu/flatbuffers that referenced this pull request Oct 2, 2020
…5526)

* Draft with Array specialization (google#5508)

* Array specialization + SFINAE to fold copy-paste (google#5508)

* Add implicit specialization of Array<scalar> and Array<struct> (google#5508)

- Tag dispatching is used for implicit specialization
- Array<scalar> and Array<struct> have different iterators and accessors
- Array<scalar> and Array<struct> have different Mutate() methods

* Add implicit specialization of Array<scalar> and Array<struct> (google#5508)

- Tag dispatching is used for implicit specialization
- Array<scalar> and Array<struct> have different iterators and accessors
- Array<scalar> and Array<struct> have different Mutate() methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants