Skip to content

Commit 13405e4

Browse files
author
David Chu
committed
fix: add boost library
1 parent 20e6807 commit 13405e4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/c-cpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717
- name: apt
18-
run: sudo apt-get install g++ cmake lcov
18+
run: sudo apt-get install g++ cmake lcov libboost-all-dev
1919
- name: submodule
2020
run: git submodule update --init --recursive
2121
- name: test

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ sudo: true
66

77
addons:
88
apt:
9-
packages: clang-format colordiff lcov
9+
packages: clang-format colordiff lcov libboost-all-dev
1010

1111
script:
1212
- ./build.sh -t
1313
- ./build.sh -c
1414

1515
after_success:
16-
- bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"
16+
- bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"

example.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace bc = boost::core;
1111
int main() {
1212
INIReader r{"./test/fixtures/config.ini"};
1313

14-
const auto& v1 = r.Get<std::string>("section1", "any");
14+
const auto& v1 = r.Get<std::string>("section1", "any");
1515
const auto& v2 = r.Get<int>("section1", "any");
1616
const auto& v3 = r.Get<double>("section1", "any");
1717
const auto& v4 = r.GetVector<float>("section2", "any_vec");
@@ -32,4 +32,4 @@ int main() {
3232
std::cout << "v5 = "; for (auto& v : v5) std::cout << v << " "; std::cout << ", which is type: " << bc::demangle(typeid(v5).name()) << std::endl;
3333

3434
return 0;
35-
}
35+
}

0 commit comments

Comments
 (0)