-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* C++17 support * Method now is a typename, not a template typename * .type_descriptor() now is not default(enabled by aa::type_info) * new macros: anyany_method/anyany_extern_method/anyany_pseudomethod (see anyany/anyany_macro.hpp for syntax and details) * allow duplicate methods like any_with<A, A, A, B, B, A, A> * pseudomethods (values in vtable, invoke returns them instead of call) * reduce header dependency * separate header * materialize for references with 'destroy' and 'copy' * concepts method/regular_method/pseudomethod * examples are separate cmake project now
- Loading branch information
Showing
38 changed files
with
3,648 additions
and
2,924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
BasedOnStyle: Google | ||
ColumnLimit : 110 | ||
AllowShortFunctionsOnASingleLine: false | ||
AllowShortLambdasOnASingleLine: Inline | ||
AllowShortLambdasOnASingleLine: true | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
SortIncludes: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: build_and_test | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
compiler: [g++-12, clang++-14] | ||
cpp_standard: [17, 20] | ||
build_type: [Debug, Release] | ||
runs-on: ${{matrix.os}} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install ninja-build lld gcc-12 clang-14 | ||
sudo ln -sf /usr/local/bin/ld /usr/bin/lld | ||
- name: Configure CMake | ||
run: | | ||
cmake . -DAA_ENABLE_TESTING=ON \ | ||
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ | ||
-DCMAKE_CXX_COMPILER=${{matrix.compiler}} \ | ||
-DCMAKE_CXX_STANDARD=${{matrix.cpp_standard}} \ | ||
-B build -G "Ninja" | ||
- name: Build | ||
run: | ||
cmake --build build | ||
|
||
- name: Test | ||
run: | | ||
cd build | ||
ctest --output-on-failure -C ${{matrix.build_type}} -V | ||
- name: Run examples | ||
run: | | ||
cd examples | ||
cmake . -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ | ||
-DCMAKE_CXX_COMPILER=${{matrix.compiler}} \ | ||
-DCMAKE_CXX_STANDARD=${{matrix.cpp_standard}} \ | ||
-B build -G "Ninja" | ||
cmake --build build | ||
cd build | ||
ctest --output-on-failure -C ${{matrix.build_type}} -V |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/build* | ||
/build* | ||
/examples/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.