mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 16:09:20 +00:00
fix(Object): disable C4251 warning on Object (Windows)
This commit is contained in:
parent
97085209ca
commit
b001af3784
1 changed files with 11 additions and 0 deletions
|
|
@ -37,6 +37,13 @@
|
|||
|
||||
LINPHONE_BEGIN_NAMESPACE
|
||||
|
||||
#ifdef _WIN32
|
||||
// TODO: Avoid this error. Maybe with a custom enabled_shared_from_this.
|
||||
// Disable C4251 triggered by std::enabled_shared_from_this.
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4251)
|
||||
#endif // ifdef _WIN32
|
||||
|
||||
/*
|
||||
* Main Object of Linphone. Can be shared but is not Clonable.
|
||||
* Supports properties and shared from this.
|
||||
|
|
@ -62,6 +69,10 @@ private:
|
|||
L_DISABLE_COPY(Object);
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(pop)
|
||||
#endif // ifdef _WIN32
|
||||
|
||||
LINPHONE_END_NAMESPACE
|
||||
|
||||
#endif // ifndef _L_OBJECT_H_
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue