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