Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
libvlcpp
Commits
620cafa3
Commit
620cafa3
authored
Mar 12, 2015
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EventManager: Work around MSVC lack of defaulted move ctor/assignment operators
parent
e5e07871
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
vlcpp/EventManager.hpp
vlcpp/EventManager.hpp
+16
-0
No files found.
vlcpp/EventManager.hpp
View file @
620cafa3
...
...
@@ -143,8 +143,24 @@ public:
return
*
this
;
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
EventManager
(
EventManager
&&
)
=
default
;
EventManager
&
operator
=
(
EventManager
&&
)
=
default
;
#else
EventManager
(
EventManager
&&
em
)
:
Internal
(
std
::
move
(
em
)
)
,
m_lambdas
(
std
::
move
(
em
.
m_lambdas
)
)
{
}
EventManager
&
operator
=
(
EventManager
&&
em
)
{
if
(
this
==
&
em
)
return
*
this
;
Internal
::
operator
=
(
std
::
move
(
em
)
);
m_lambdas
=
std
::
move
(
em
.
m_lambdas
);
}
#endif
using
RegisteredEvent
=
EventHandlerBase
*
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment