Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CplusplusCourse - outdated
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Sebastien Ponce
CplusplusCourse - outdated
Commits
1806c24e
Commit
1806c24e
authored
4 years ago
by
Sebastien Ponce
Browse files
Options
Downloads
Plain Diff
Merge branch 'hsf-2021-01-notes' into 'master'
Details See merge request
!16
parents
7a8f92ab
1aec27fe
No related branches found
Branches containing commit
No related tags found
1 merge request
!16
Details
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
code/ExercisesCheatSheet.md
+1
-0
1 addition, 0 deletions
code/ExercisesCheatSheet.md
code/virtual_inheritance/README.md
+1
-1
1 addition, 1 deletion
code/virtual_inheritance/README.md
with
2 additions
and
1 deletion
code/ExercisesCheatSheet.md
+
1
−
0
View file @
1806c24e
...
...
@@ -83,6 +83,7 @@ That second part can be skipped.
Simple example of a memory leak and how valgrind helps a lot with this.
Not so simple solution here. And the use of gdb with steping at the level of the destructor call is recommended. Give it as a hint to people.
The solution is that the wrong destructor is called when calling "delete hexa" because the constructor is not virtual while it should be.
### callgrind
...
...
This diff is collapsed.
Click to expand it.
code/virtual_inheritance/README.md
+
1
−
1
View file @
1806c24e
...
...
@@ -3,7 +3,7 @@
Step 1
*
look at the code
*
open
`t
es
t.cpp`
*
open
`t
rymultiheri
t.cpp`
*
create a
`TextBox`
and call
`draw`
*
Fix the code to call both draws by using types
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment