Skip to content

Commit e561fd3

Browse files
committed
Fixing function pointers depreciated in c++11, but makes the build require c++11
1 parent 6870564 commit e561fd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scitokens_internal.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ parse_url(const std::string &url, std::string &schema, std::string &netloc,
100100
schema.reserve(distance(url.begin(), prot_iter));
101101
std::transform(url.begin(), prot_iter,
102102
std::back_inserter(schema),
103-
std::ptr_fun<int,int>(tolower));
103+
std::function<int(int)>(tolower));
104104
if (prot_iter == url.end() )
105105
{
106106
throw InvalidIssuerException("Issuer URL missing hostname.");
@@ -110,7 +110,7 @@ parse_url(const std::string &url, std::string &schema, std::string &netloc,
110110
netloc.reserve(std::distance(prot_iter, path_iter));
111111
std::transform(prot_iter, path_iter,
112112
std::back_inserter(netloc),
113-
std::ptr_fun<int,int>(tolower));
113+
std::function<int(int)>(tolower));
114114
std::string::const_iterator query_iter = std::find(path_iter, url.end(), '?');
115115
path.assign(path_iter, query_iter);
116116
}

0 commit comments

Comments
 (0)