Skip to content

Commit

Permalink
avoid C++11-specific default template argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Apr 5, 2016
1 parent df5092e commit 2eb2005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/depgen.cpp
Expand Up @@ -91,7 +91,7 @@ struct Is_not_duplicate_ignore_path {
};

/// deletes duplicate elements from a vector (preseves order)
template <typename Predicate = Is_not_duplicate>
template <typename Predicate>
std::vector<std::string> delete_duplicates(const std::vector<std::string>& vec)
{
std::vector<std::string> unique_vector;
Expand Down Expand Up @@ -358,7 +358,7 @@ int main(int argc, const char* argv[])

paths.insert(paths.begin(), directory(file_name));
paths.push_back(".");
paths = delete_duplicates(paths);
paths = delete_duplicates<Is_not_duplicate>(paths);

// search for header inclusions (remove duplicate headers)
std::vector<std::string> dependencies
Expand Down

0 comments on commit 2eb2005

Please sign in to comment.