aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/synchronization.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-01-30 18:38:28 -0500
committerLioncash <mathew1800@gmail.com>2020-01-30 18:42:40 -0500
commit371f3ecf5de94a587b033b1b76e740e6f513d758 (patch)
tree8156623d13b7708b2808ea69d6f80a835136797b /src/core/hle/kernel/synchronization.cpp
parent6bc28ed1c8f9807d0fb3b8924cbb8a66230cb95a (diff)
kernel/physical_core: Make use of std::unique_ptr
shared_ptr was used in 8eb175481c7434c31e92b7cbc38ad3e881c33f3b due to a misunderstanding of how the language generates move constructors and move assignment operators. If a destructor is user-provided, then the compiler won't generate the move constructor and move assignment operators by default--they must be explicitly opted into. The reason for the compilation errors is due to the fact that the language will fall back to attempting to use the copy constructor/copy assignment operators if the respective move constructor or move assignment operator is unavailable. Given that we explicitly opt into them now, the the move constructor and move assignment operators will be generated as expected.
Diffstat (limited to 'src/core/hle/kernel/synchronization.cpp')
0 files changed, 0 insertions, 0 deletions