Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f7108a

Browse files
authored
Better links to CoreGuidelines (#1094)
The `#i13-do-not-pass-an-array-as-a-single-pointer` anchor seems to be auto generated based on the title of the section. The `#Ri-array` anchor is explicitely written in the source, so this should be a better link.
1 parent 7a297d4 commit 7f7108a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/headers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ not_null& operator+=(std::ptrdiff_t) = delete;
263263
not_null& operator-=(std::ptrdiff_t) = delete;
264264
```
265265

266-
Explicitly deleted operators. Pointers point to single objects ([I.13: Do not pass an array as a single pointer](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#i13-do-not-pass-an-array-as-a-single-pointer)), so don't allow these operators.
266+
Explicitly deleted operators. Pointers point to single objects ([I.13: Do not pass an array as a single pointer](http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Ri-array)), so don't allow these operators.
267267

268268
##### Observers
269269

@@ -285,7 +285,7 @@ Dereference the underlying pointer.
285285
void operator[](std::ptrdiff_t) const = delete;
286286
```
287287

288-
Array index operator is explicitly deleted. Pointers point to single objects ([I.13: Do not pass an array as a single pointer](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#i13-do-not-pass-an-array-as-a-single-pointer)), so don't allow treating them as an array.
288+
Array index operator is explicitly deleted. Pointers point to single objects ([I.13: Do not pass an array as a single pointer](http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Ri-array)), so don't allow treating them as an array.
289289

290290
#### Non-member functions
291291

@@ -347,7 +347,7 @@ template <class T>
347347
not_null<T> operator+(std::ptrdiff_t, const not_null<T>&) = delete;
348348
```
349349
350-
Addition and subtraction are explicitly deleted. Pointers point to single objects ([I.13: Do not pass an array as a single pointer](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#i13-do-not-pass-an-array-as-a-single-pointer)), so don't allow these operators.
350+
Addition and subtraction are explicitly deleted. Pointers point to single objects ([I.13: Do not pass an array as a single pointer](http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Ri-array)), so don't allow these operators.
351351
352352
##### STL integration
353353

0 commit comments

Comments
 (0)