Skip to content

Commit

Permalink
#5911: Fix gcc compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Mar 3, 2022
1 parent 6cd041f commit 66f1446
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/parser/ThreadedDeclParser.h
Expand Up @@ -19,7 +19,7 @@ class ThreadedDeclParser :
public util::ThreadedDefLoader<ReturnType>
{
public:
using LoadFunction = util::ThreadedDefLoader<typename ReturnType>::LoadFunction;
using LoadFunction = typename util::ThreadedDefLoader<ReturnType>::LoadFunction;

private:
decl::Type _declType;
Expand All @@ -31,7 +31,7 @@ class ThreadedDeclParser :
// Construct a parser traversing all files matching the given extension in the given VFS path
// Subclasses need to implement the parse(std::istream) overload for this scenario
ThreadedDeclParser(decl::Type declType, const std::string& baseDir, const std::string& extension, std::size_t depth = 1) :
util::ThreadedDefLoader<typename ReturnType>(std::bind(&ThreadedDeclParser::doParse, this)),
util::ThreadedDefLoader<ReturnType>(std::bind(&ThreadedDeclParser::doParse, this)),
_baseDir(baseDir),
_extension(extension),
_depth(depth),
Expand All @@ -40,15 +40,15 @@ class ThreadedDeclParser :

public:
// Legacy constructor
ThreadedDeclParser(const std::string& baseDir, const std::string& extension,
ThreadedDeclParser(const std::string& baseDir, const std::string& extension,
const LoadFunction& loadFunc) :
ThreadedDeclParser(baseDir, extension, 0, loadFunc)
{}

// Legacy constructor
ThreadedDeclParser(const std::string& baseDir, const std::string& extension, std::size_t depth,
const LoadFunction& loadFunc) :
util::ThreadedDefLoader<typename ReturnType>(loadFunc),
util::ThreadedDefLoader<ReturnType>(loadFunc),
_baseDir(baseDir),
_extension(extension),
_depth(depth)
Expand Down

0 comments on commit 66f1446

Please sign in to comment.