Skip to content

Commit 325cc33

Browse files
authored
Merge pull request #132 from jupp0r/gcc48-compatibility
GCC 4.8 compatibility
2 parents 11f54fd + 63a5c61 commit 325cc33

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ env:
1616
install:
1717
- sudo apt-get update
1818
- sudo apt-get install -y software-properties-common cmake curl python-pip git lcov libcurl4-openssl-dev
19-
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
20-
- sudo apt-get update
21-
- sudo apt-get install -y gcc-5 g++-5
22-
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1 --slave /usr/bin/g++ g++ /usr/bin/g++-5
19+
- sudo apt-get install -y gcc-4.8 g++-4.8
2320
- sudo add-apt-repository -y ppa:webupd8team/java
2421
- echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections
2522
- sudo apt-get install -o Dpkg::Options::="--force-confnew" -y oracle-java8-installer

push/src/gateway.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int Gateway::push(PushMode mode) {
6060
metrics.push_back(metric);
6161
}
6262

63-
auto uri = std::stringstream{};
63+
std::stringstream uri;
6464
uri << jobUri_ << labels_ << wcollectable.second;
6565

6666
auto body = serializer.Serialize(metrics);
@@ -101,7 +101,7 @@ std::future<int> Gateway::async_push(PushMode mode) {
101101
metrics.push_back(metric);
102102
}
103103

104-
auto uri = std::stringstream{};
104+
std::stringstream uri;
105105
uri << jobUri_ << labels_ << wcollectable.second;
106106

107107
auto body = serializer.Serialize(metrics);

0 commit comments

Comments
 (0)