Timm Knape
5eb1467d5e
I.12: use a const string as mentioned in the text
2 years ago
antcolag
b43874936f
ES.34: use the previously declared "const char * is"
2 years ago
bgloyer
b5adbd2564
F_3 void auto ( #2125 )
2 years ago
MikhailBerezhanov
7c9dd4dda8
dual hierarchy example: interface hierarchies fix ( #2122 )
...
Co-authored-by: Mikhail Berezhanov <mpb@martistel.com>
2 years ago
Xavier1113
e1b17ec9a5
C.181 Fix missing type specifier ( #2117 )
2 years ago
Xavier1113
f2485c56a1
Fix variable name in example ( #2116 )
2 years ago
Eisenwave
efbc482f0d
Fix missing noexcept specifiers ( #2102 )
3 years ago
Eisenwave
892b8ea7f3
fix stray inline link ( #2104 )
3 years ago
Eisenwave
fe3e83e648
fix memory leak in example of C.66 ( #2096 )
3 years ago
Eisenwave
b11fbd0195
replace "modulo arithmetic" with "modular arithmetic" ( #2088 )
3 years ago
Eisenwave
68f56f0a34
fix missing return *this ( #2097 )
3 years ago
Eisenwave
95aca76777
add spaces in requires expressions ( #2098 )
3 years ago
Eisenwave
a80c2a6f36
fix ill-formed example C.65 (missing noexcept on declaration) ( #2101 )
3 years ago
Eisenwave
db079ab301
fix stray ellipsis ( #2091 )
3 years ago
Chris Cotter
1634e898b6
C++20 is more up to date than C++17 ( #2085 )
3 years ago
Sergey Zubkov
c17b4be1e8
RF.rules: archive AUTOSAR pdf link ( closes #2070 )
3 years ago
Kimi MA
f3d1b34462
remove redundant "what to do" ( #2075 )
3 years ago
Fernando J. Iglesias García
16f29fd38c
Use enum class in Enum.4 example. ( #2065 )
3 years ago
Sergey Zubkov
1d04d93dbe
bump date and make CI happy
3 years ago
Herb Sutter
1b41448298
List some non-enum alternatives to macros in Enum.1, closes #2054
3 years ago
Herb Sutter
89a20b2cc8
Expand comment about why P.3 'bad' code is unclear, closes #2058
3 years ago
Herb Sutter
3c90d590e1
Allow `[&]` capture default when also capturing `this`, closes #2060
3 years ago
bgloyer
0d70ae927d
SL_3 'Do not add non-standard entities to namespace `std`' add example ( #2031 )
...
* SL_3 add example
* Update isocpp.dic
add My_Vector
3 years ago
Henrique Mageste
6a0b5e6eca
Abstract class needs at least one abstract method to be considered abstract ( #2053 )
...
The introduction of the method is needed, for instance, for constructions like std::is_abstract<AbstractBase>::value to be evaluated to true
3 years ago
Herb Sutter
696633572c
Remove spurious Enforcement, closes #2061
3 years ago
Florian Bramer
a3ae12b20e
Fixed typo ( #2055 )
...
Section C.21 shows a code example which typed
a class name in two different ways:
- CloneableBase
- ClonableBase
It is easy to overlook but it would not compile.
My commit prefers CloneableBase over ClonableBase and uses just that
name then. I prefered CloneableBase because Java's SDK uses the same
writing, so I guess this can be consired to be more widely used.
3 years ago
Tim Lyon
8e3723f18f
Fix typo ( #2051 )
3 years ago
Xeverous
e80373f226
fix typo in code example in C.43 ( #2040 )
3 years ago
ancestor-mithril
e1a453b0b0
Fix broken anchors ( #2038 )
...
* Standard library and GSL anchors do not work anymore.
3 years ago
Chris Cotter
938452179c
Fix minor typo in ES.59 ( #2037 )
3 years ago
Hyuk Myeong
efd59afe9c
Fix typos when using names ( #2035 )
...
* Fix typos when using names
* Update isocpp.dic
3 years ago
Sergey
31bb3d1b01
F.10: small code fix
3 years ago
Jonathan Wakely
6d912e8b51
CP.44 improve example and add more accurate discussion ( #2028 )
3 years ago
Herb Sutter
da8a6fbd37
Make C.12 title consistent
3 years ago
Herb Sutter
06fabdc9af
Update C.12 to apply to copyable/movable types, closes #2012
3 years ago
Herb Sutter
0bc56ffaa8
s/instead follow/follow/ for #2010
3 years ago
Russell McClellan
1ba3371a0d
Add exceptions to F.15, F.16, and F.18 for `shared_ptr` types ( #2010 )
...
Currently these guidelines conflict with R.34, R.35, and R.36.
This conflict has led to confusion, where it's unclear which
guidelines to prefer for `shared_ptr` types.
In a [previous
PR](https://github.com/isocpp/CppCoreGuidelines/pull/1989 ) I proposed
preferring the "F" series of guidelines. This PR takes the opposite
approach and prefers the "R" guidelines for `shared_ptr` types.
I don't feel strongly about which guidelines to prefer, I just want to make
sure the guidelines are internally consistent.
3 years ago
Hyuk Myeong
fa31c19979
Fix minor typos ( #2022 )
...
* Fix minor typos
Fix minor typos
* Update isocpp.dic
3 years ago
Sergey Zubkov
4b706d9d6d
satisfy travis ci
3 years ago
Herb Sutter
17b68f14f6
Describe capture-lists and update F.19 forwarding enforcement, updates #2016 and closes #2017
3 years ago
Chris Cotter
1748ebb45a
Editorial - use "capture default" for syntactic element ( #2016 )
3 years ago
Kimi MA
12ad22b024
non-built-in -> built-in ( #2015 )
3 years ago
Kimi MA
9028b62106
R.33 add missing space in the title ( #2014 )
3 years ago
Arkady Shapkin
ee8d9ab216
Clarify F.16 enforcement rule about passing by value ( #2008 )
3 years ago
Sergey Zubkov
fb112c7281
make CI happy
3 years ago
Herb Sutter
380a6ff26d
Added `span` bounds-checking guarantee and a note about its relationship to `std::span`
3 years ago
Herb Sutter
b435cf54a5
Apply edits to close #1984 #2004 #2006
...
Also removing some stray trailing whitespace on a few unrelated lines
3 years ago
bgloyer
ee368e238e
R.20: 'represent ownership' clean up example and enforcement ( #1992 )
...
* Clean up R.20 example; enforcement
* Clarified enforcement
3 years ago
Andrey Sikorin
b8f13c59a3
Extend "when necessary" explanation ( #2000 )
...
* Extend "when necessary" explanation
* Rephrase sentence
3 years ago
Max FERGER
ae06b0a056
Per: fix some typos ( #1995 )
...
* Per.7: fix typo in example
* Per: improve grammar
* Apply suggestions from code review
3 years ago