2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-09 02:15:21 +00:00

Fix compilation with GCC 6.0 std::make_pair changes

With C++14, std::make_pair<T,U>(t,u) expects rvalue. If trying
to pass an lvalue, either std::make_pair(t,u) and type is
deduced, or std::pair<T,U>(t,y).
This commit is contained in:
Andreas Rammhold
2016-09-06 14:37:05 +02:00
parent ac0266e395
commit 482663a3c9
3 changed files with 3 additions and 3 deletions

View File

@@ -1698,7 +1698,7 @@ std::pair<uint32_t, uint32_t> PgSqlHostDataSourceImpl::getVersion() const {
uint32_t minor;
PgSqlExchange::getColumnValue(r, 0, 0, minor);
return (std::make_pair<uint32_t, uint32_t>(version, minor));
return (std::make_pair(version, minor));
}
void