Commit 4b199b06 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fix use of std::make_pair so it compiles with C++11.

Compiler error:

../3rdparty/botan/botan.cpp:21912:17: error: no matching function for call to 'make_pair'
         return std::make_pair<struct dirent*, std::string>(dir, m_cur_dir.second);
/usr/bin/../lib/c++/v1/utility:444:1: note: candidate function [with _T1 = dirent *, _T2 = std::__1::basic_string<char>] not viable: no known conversion from
      'struct dirent *' to 'dirent *&&' for 1st argument
make_pair(_T1&& __t1, _T2&& __t2)

Change-Id: I1a8782956cf0a105fe2f12bf6f8470242a54a3a5
Reviewed-by: default avatarChristian Kandeler <>
parent 0dee89ba
...@@ -21909,7 +21909,7 @@ std::pair<struct dirent*, std::string> Directory_Walker::get_next_dirent() ...@@ -21909,7 +21909,7 @@ std::pair<struct dirent*, std::string> Directory_Walker::get_next_dirent()
struct dirent* dir = ::readdir(m_cur_dir.first); struct dirent* dir = ::readdir(m_cur_dir.first);
if(dir) if(dir)
return std::make_pair<struct dirent*, std::string>(dir, m_cur_dir.second); return std::make_pair(dir, m_cur_dir.second);
::closedir(m_cur_dir.first); ::closedir(m_cur_dir.first);
m_cur_dir = std::make_pair<DIR*, std::string>(0, ""); m_cur_dir = std::make_pair<DIR*, std::string>(0, "");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment