Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The library is most useful for educational projects or small
For testing more complex projects I would recommend using
[GoogleTest](https://github.com/google/googletest).

The code is ~1.2k lines.
The code is ~1.3k lines.
The Release builds are optimized for speed over size, so the
build could probably be tweaked to get a smaller binary if
desired.
Expand Down Expand Up @@ -149,9 +149,9 @@ Then add it to your test executable target through

*Will be available for 1.5 release*

You be able to include TestCPP in your `vcpkg` project by running the
following in the root of your project (pending vcpkg PR approval that
I have in right now https://github.com/microsoft/vcpkg/pull/37471):
You will be able to include TestCPP in your `vcpkg` project by running
the following in the root of your project (pending vcpkg PR approval
that I have in right now https://github.com/microsoft/vcpkg/pull/37471):
```
vcpkg add port eljonny-testcpp
```
Expand Down
1 change: 1 addition & 0 deletions include/internal/TestCPPUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ namespace TestCPP {
* This type is for suppressing exit-time destructors for statics.
*/
template <class T> class no_destroy {
// Flawfinder: ignore
alignas(T) unsigned char data[sizeof(T)];
public:
template <class... Ts> no_destroy(Ts&&... ts) { new (data) T(std::forward<Ts>(ts)...); }
Expand Down