Skip to content

Commit dfcbe03

Browse files
committed
Remove namespaces, fix std::array missing size
Based on comments from r/cpp
1 parent f45f0cb commit dfcbe03

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,8 @@ Append this to your Emacs configuration
6363
* Edit `cpp-params-refcard.org`
6464
* Save
6565
* Export <kbd>C-c C-e l o</kbd>
66+
67+
# To Do
68+
69+
* Add horizontal rules between sections
70+
* Use _mononoki_ font for monospace using `fontspec` package

cpp_param_ref.org

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,12 @@ Returning value (both move and copy) will lead to deep copy for [[https://stacko
195195
#+BEGIN_SRC c++
196196
// example
197197
// a move-unfriendly type (has no freestore data members)
198-
struct doc::Properties {
199-
Point origin;
200-
float size_x, size_y;
201-
std::array<Margin> margin_sizes;
198+
struct Properties {
199+
Point origin;
200+
float size_x, size_y;
201+
std::array<Margin, 4> margin_sizes;
202202
};
203-
void Deduce(doc::Properties& p) {
203+
void Deduce(Properties& p) {
204204
}
205205
#+END_SRC
206206

0 commit comments

Comments
 (0)