File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 341341struct T {...}; T a;
342342void fVal(T value); fVal(a); // by value
343343void fRef(const T &value); fRef(a); // by reference
344- void fPtr(const T *value); fPtr(|{\setlength {\fboxsep }{0pt}\color {gray}\colorbox {yellow}{\textsc {&}}}|a); // by pointer
344+ void fPtr(const T *value); fPtr(|{\setlength {\fboxsep }{0pt}\color {gray}\colorbox {yellow}{\textsc {\ & }}}|a); // by pointer
345345void fWrite(T &value); fWrite(a); // non-const ref
346346 \end {cppcode* }
347347 \end {block }
Original file line number Diff line number Diff line change 370370 % escapeinside seems to break gobble, so need to un-indent manually
371371 \begin {cppcode* }{escapeinside=@@}
372372auto shared = std::make_shared<int>(100);
373- auto print = [@\textcolor {red}{&}@shared](){
373+ auto print = [@\textcolor {red}{\ & }@shared](){
374374 std::cout << "Use: " << shared.use_count() << " "
375375 << "value: " << *shared << "\n" ;
376376};
You can’t perform that action at this time.
0 commit comments