mirror of
https://github.com/boostorg/callable_traits.git
synced 2026-02-27 17:02:12 +00:00
67 lines
2.3 KiB
Markdown
67 lines
2.3 KiB
Markdown
<!--
|
|
Copyright Barrett Adair 2016
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
|
|
-->
|
|
|
|
# CallableTraits
|
|
|
|

|
|
|
|
[](https://gitter.im/badair/callable_traits?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
|
|
|
<a target="_blank" href="http://melpon.org/wandbox/permlink/Bu0tTE19KJ67xYTw">![Try it online][badge.wandbox]</a>
|
|
|
|
CallableTraits is a small, header-only library providing a uniform and comprehensive interface for the type-level manipulation of all callable types in C++.
|
|
|
|
## Documentation [Here](http://badair.github.io/callable_traits/index.html)
|
|
|
|
## Building the tests and examples
|
|
|
|
First, you'll need a recent version of [CMake](https://cmake.org/). These commands assume that `git` and `cmake` are available in your environment path. If you need help with this, [message me on Gitter](https://gitter.im/badair/callable_traits).
|
|
|
|
__GNU/Linux/OSX__
|
|
|
|
Open a shell and enter the following commands:
|
|
|
|
```shell
|
|
git clone http://github.com/badair/callable_traits
|
|
cd callable_traits
|
|
mkdir build
|
|
cd build
|
|
cmake ..
|
|
make check
|
|
```
|
|
If your system doesn't have a default C++ compiler, or your default C++ compiler is too old, you'll need to point CMake to a compatible C++ compiler like this, before running `make check`:
|
|
|
|
```shell
|
|
cmake .. -DCMAKE_CXX_COMPILER=/path/to/compiler
|
|
```
|
|
|
|
CMake should yell at you if your compiler is too old.
|
|
|
|
__Windows__
|
|
|
|
Cygwin/MSYS/MSYS2 users should refer to the Linux section. For Visual Studio 2015, fire up `cmd.exe` and enter the following commands:
|
|
|
|
```shell
|
|
git clone http://github.com/badair/callable_traits
|
|
cd callable_traits
|
|
mkdir build
|
|
cd build
|
|
cmake .. -G"Visual Studio 14 2015 Win64"
|
|
```
|
|
Then, open the generated `callable_traits.sln` solution file in Visual Studio.
|
|
|
|
## See Also
|
|
|
|
CallableTraits is a spin-off of a sillier, messier, more experimental project of mine called [CLBL](https://github.com/badair/CLBL), which has a storied commit history.
|
|
|
|
## License
|
|
Please see [LICENSE.md](LICENSE.md).
|
|
|
|
<!-- Links -->
|
|
[badge.Wandbox]: https://img.shields.io/badge/try%20it-online-blue.svg
|
|
[example.Wandbox]: http://melpon.org/wandbox/permlink/TlioDiz6yYNxZFnv
|
|
|