potswa / cxx_function

Prototype for new std::function features, compatible with C++11.
MIT License
46 stars 7 forks source link

Add CMakeLists and build.py script #11

Closed jbcoe closed 7 years ago

jbcoe commented 7 years ago

Some tests triggered clang-warnings due to move-assignment from-self. Lines in question have been commented out with no effect on test success.

python ./scripts/build.py -t gives a platform-portable build and test run.

jbcoe commented 7 years ago

scripts/build.py is taken from https://github.com/jbcoe/polymorphic_value

potswa commented 7 years ago

Thanks for the contribution!

It would be more appropriate to silence the warnings with #pragma. The library supports move-from-self, hence the specific cases. Can you provide the command-line -W switch?

Thanks for the scripts, but they seem like overkill. It's only a one-liner to compile and execute each .cpp file. I should provide negative tests to check the deprecation warnings and non-SFINAE failures, but there doesn't seem to be a proper harness here. Something like that is on the to-do list…