mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-15 08:26:04 +08:00
Delete copy and move in delegate_service.h
The implicitly provided copy and move copied internal pointers which are invalid after copying.
This commit is contained in:
parent
47fa453393
commit
98cf8ce1b4
@ -117,6 +117,14 @@ namespace etl
|
||||
lookup.fill(default_delegate);
|
||||
}
|
||||
|
||||
delegate_service(const delegate_service&) ETL_DELETE;
|
||||
delegate_service& operator=(const delegate_service&) ETL_DELETE;
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
delegate_service(delegate_service&&) ETL_DELETE;
|
||||
delegate_service& operator=(delegate_service&&) ETL_DELETE;
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
/// Registers a delegate for the specified id.
|
||||
/// Compile time assert if the id is out of range.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user