Add explicit defaulted copy ctor to Values #1176

Closed
NickGerleman wants to merge 1 commits from export-D41447490 into main
NickGerleman commented 2022-11-21 13:36:59 -08:00 (Migrated from github.com)

Summary:
Values is a wrapper to story an array of YGValue's as CompactValues.

From https://github.com/facebook/yoga/issues/1174 we see a warning Wdeprecated-copy beacuse a user-defined copy constructor is not present, but a user-defined asignment operator is (the defaulted one). This adds an explicitly defaulted copy contructor which should silence the warning I think.

Changelog:
[Internal]

Differential Revision: D41447490

Summary: `Values` is a wrapper to story an array of YGValue's as CompactValues. From https://github.com/facebook/yoga/issues/1174 we see a warning `Wdeprecated-copy` beacuse a user-defined copy constructor is not present, but a user-defined asignment operator is (the defaulted one). This adds an explicitly defaulted copy contructor which should silence the warning I think. Changelog: [Internal] Differential Revision: D41447490
facebook-github-bot commented 2022-11-21 13:37:25 -08:00 (Migrated from github.com)

This pull request was exported from Phabricator. Differential Revision: D41447490

This pull request was **exported** from Phabricator. Differential Revision: [D41447490](https://www.internalfb.com/diff/D41447490)

Pull request closed

Sign in to join this conversation.
No description provided.