Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
1d02af06
Commit
1d02af06
authored
Sep 14, 2017
by
Ronan
Browse files
feat(Variant): add copy constructor (with r-value) impl
parent
261b8cc8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/variant/variant.cpp
src/variant/variant.cpp
+4
-1
No files found.
src/variant/variant.cpp
View file @
1d02af06
...
...
@@ -81,7 +81,10 @@ Variant::Variant (const Variant &src) {
}
Variant
::
Variant
(
Variant
&&
src
)
{
// TODO.
// Don't call placement new.
L_ASSERT
(
!
mPrivate
);
mPrivate
=
src
.
mPrivate
;
src
.
mPrivate
=
nullptr
;
}
Variant
::
Variant
(
int
value
)
:
Variant
(
Int
)
{
...
...
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