gpdaniels / gtl Goto Github PK
View Code? Open in Web Editor NEWA collection of useful well-commented, self-contained, simple, and/or interesting C++ classes
Home Page: https://gpdaniels.com
License: GNU General Public License v3.0
A collection of useful well-commented, self-contained, simple, and/or interesting C++ classes
Home Page: https://gpdaniels.com
License: GNU General Public License v3.0
See:
https://blog.conan.io/2019/09/02/Deterministic-builds-with-C-C++.html
And:
https://developercommunity.visualstudio.com/t/Add-linker-option-to-strip-Rich-stamp/740443
For:
/emittoolversioninfo:no
Line 38 in 77f1237
Need to build on MSVC using:
cmake --build . --config ${BUILD_TYPE} -- -nologo -verbosity:minimal -maxcpucount
Not sure the any class works with types that use (multiple-)inheritance.
Provoked by finding this:
https://stackoverflow.com/questions/54024018/polymorphic-casting-from-void
Starting test...
Requirement failure: #1
Requirement: simulation_loop.update() == false
File: /home/travis/build/gpdaniels/gtl/Tests/simulation_loop.test.cpp
Line: 55
Function: void TEST_function_update()
Finished test. '0' assertions, detected '1' errors.
Something along the lines of this, although maybe the time should be specified as an argument.
void benchmark(const char* name, std::function<void(void)>&& testFunction) {
printf("%-15s: ", name);
std::chrono::steady_clock::time_point Start;
std::chrono::steady_clock::time_point End;
// Setup
Start = std::chrono::steady_clock::now();
End = Start;
while (std::chrono::duration<double>(End - Start).count() < 0.5) {
testFunction();
End = std::chrono::steady_clock::now();
}
// Testing
Start = std::chrono::steady_clock::now();
End = Start;
unsigned int iterations = 0;
while (std::chrono::duration<double>(End - Start).count() < 0.5) {
testFunction();
++iterations;
End = std::chrono::steady_clock::now();
}
printf("%f (ns) %d (iterations)\n", std::chrono::duration<double, std::nano>(End - Start).count() / static_cast<double>(iterations), iterations);
fflush(stdout);
}
Line 154 in 6e3e9d3
/Users/travis/build/gpdaniels/gtl/Tests/static_array_nd.test.cpp:330:93: warning: suggest braces around initialization of subobject [-Wmissing-braces]
gtl::static_array_nd<type, value1, value2> static_array_nd_2d = {{{ value }}};
and
/Users/travis/build/gpdaniels/gtl/Tests/static_array_nd.test.cpp:340:111: warning: suggest braces around initialization of subobject [-Wmissing-braces]
gtl::static_array_nd<type, value1, value2, value3> static_array_nd_3d = {{{{{ value }}}}};
From Wikipedia:
EAX=80000000h: Get Highest Extended Function Supported
The highest calling parameter is returned in EAX.
EAX=80000001h to EAX=80000008h: Documented features.
This will require an update to the .travis.yml file, but hopefully not significant changes.
There's not enough unit test coverage for these yet and I'm sure some are broken.
warning C4002: too many arguments for function-like macro invocation 'REQUIRE_TO_STRING'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.