You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
## Library utilities, methodologies and guidelines to make C++ nice to work with.
2
2
3
+
Single header Library utilities:
4
+
5
+
+[ptr_to_unique](https://github.com/make-cpp-nice/ptr_to_unique) - A smart pointer to an object already owned by a unique_ptr. It doesn't own the object but it self zeroes when the object is deleted so that it can never dangle.
6
+
+[numerical conversions](https://github.com/make-cpp-nice/numerical-conversions) - A set of dedicated numerical conversions that are a better choice than the canonical application of static_cast.
7
+
+[literal integral constants](https://github.com/make-cpp-nice/literal-integral-constants) - Converts literal constants into std::integral_constant using a double underscore suffix, e.g. 4__
8
+
3
9
Some thoughts:
4
10
5
11
+ Safe is nice. That doesn't have to be the bullet proof provable safety of Rust. A more humble aim that with reasonable care safety hazards can easily be avoided would be a big improvement on the status quo. So hazards of pointer, memory or data corruption should be well controlled and easy to avoid.
@@ -8,11 +14,7 @@ Some thoughts:
8
14
+ Coding should not be laborious. You should not have to code much more than what you are thinking.
9
15
+ Learning curves should be short and provide early rewards.
10
16
11
-
Library utilities:
12
17
13
-
+ ptr_to_unique - A smart pointer to an object already owned by a unique_ptr. It doesn't own the object but it self zeroes when the object is deleted so that it can never dangle.
14
-
+ numerical conversions - A set of dedicated numerical conversions that are a better choice than the canonical application of static_cast.
15
-
+ literal integral constants - Converts literal constants into std::integral_constant using a double underscore suffix, e.g. 4__
0 commit comments