Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
82ca9318
Commit
82ca9318
authored
Mar 27, 2015
by
Miro Knejp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-enable copy/move special member generation in +c records
parent
90ca78a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/source/CppGenerator.scala
src/source/CppGenerator.scala
+9
-1
No files found.
src/source/CppGenerator.scala
View file @
82ca9318
...
@@ -219,7 +219,15 @@ class CppGenerator(spec: Spec) extends Generator(spec) {
...
@@ -219,7 +219,15 @@ class CppGenerator(spec: Spec) extends Generator(spec) {
if
(
r
.
ext
.
cpp
)
{
if
(
r
.
ext
.
cpp
)
{
w
.
wl
w
.
wl
w
.
wl
(
s
"virtual ~$actualSelf() {}"
)
w
.
wl
(
s
"virtual ~$actualSelf() = default;"
)
w
.
wl
// Defining the dtor disables implicit copy/move operation generation, so re-enable them
// Make them protected to avoid slicing
w
.
wlOutdent
(
"protected:"
)
w
.
wl
(
s
"$actualSelf(const $actualSelf&) = default;"
)
w
.
wl
(
s
"$actualSelf($actualSelf&&) = default;"
)
w
.
wl
(
s
"$actualSelf& operator=(const $actualSelf&) = default;"
)
w
.
wl
(
s
"$actualSelf& operator=($actualSelf&&) = default;"
)
}
}
}
}
}
}
...
...
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