Skip to content

Commit 59a0ecc

Browse files
committed
[RF] Delete copy/move construction and assignment of RooArgProxy
Delete copy/move construction and assignment, because it will always result in invalid proxies.
1 parent 294f6ad commit 59a0ecc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

roofit/roofitcore/inc/RooArgProxy.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ class RooArgProxy : public TNamed, public RooAbsProxy {
3636
RooArgProxy(const char* name, RooAbsArg* owner, const RooArgProxy& other) ;
3737
~RooArgProxy() override ;
3838

39+
// Delete copy/move construction and assignment, because it will always
40+
// result in invalid proxies.
41+
RooArgProxy(RooArgProxy const& other) = delete;
42+
RooArgProxy(RooArgProxy && other) = delete;
43+
RooArgProxy& operator=(RooArgProxy const& other) = delete;
44+
RooArgProxy& operator=(RooArgProxy && other) = delete;
45+
3946
/// Return pointer to contained argument
4047
inline RooAbsArg* absArg() const {
4148
return _arg ;

0 commit comments

Comments
 (0)