Skip to content

Commit

Permalink
Merge pull request #234 from LumaPictures/pr/base/clang_default_init_…
Browse files Browse the repository at this point in the history
…const_member

[fileio] fix a clang warning about default ctor + const member
  • Loading branch information
Krystian Ligenza authored Jan 31, 2020
2 parents 5cd2826 + 5747b06 commit a29704f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/fileio/primUpdater.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ class UsdMayaPrimUpdater
UsdMayaPrimUpdater(const MFnDependencyNode& depNodeFn,
const SdfPath& usdPath);

UsdMayaPrimUpdater() = default;
// clang errors if you use "= default" here, due to const SdfPath member
// see: http://open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#253
// ...which it seems clang only implements if using newer version + cpp std
UsdMayaPrimUpdater() {}

virtual ~UsdMayaPrimUpdater() = default;

enum class Supports {
Expand Down

0 comments on commit a29704f

Please sign in to comment.