This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
38
Wiki
Activity
Browse Source
Add copy ctor to WeakPtr.
tags/v2.0.0
Andrew Belt
3 years ago
parent
d4a815c574
commit
077064f069
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
include/weakptr.hpp
+ 3
- 0
include/weakptr.hpp
View File
@@ -51,6 +51,9 @@ struct WeakPtr {
WeakPtr(T* ptr) {
set(ptr);
}
WeakPtr(const WeakPtr& other) {
set(other.get());
}
WeakPtr& operator=(const WeakPtr& other) {
set(other.get());
return *this;
Write
Preview
Loading…
Cancel
Save