[flang][msvc] Add explicit function template argument to applyFunction. NFC.
Msvc has difficulties deducing the template argument here. The error message is: ``` basic-parsers.h(790,12): error C2672: 'applyFunction': no matching overloaded function found ``` Explicitly pass the first template argument to help it. This patch is part of the series to make flang compilable with MS Visual Studio <http://lists.llvm.org/pipermail/flang-dev/2020-July/000448.html>. Reviewed By: DavidTruby Differential Revision: https://reviews.llvm.org/D87961
This commit is contained in:
parent
ef7d22a986
commit
2bc589bbb8
|
|
@ -787,7 +787,8 @@ public:
|
||||||
constexpr NonemptySeparated(const NonemptySeparated &) = default;
|
constexpr NonemptySeparated(const NonemptySeparated &) = default;
|
||||||
constexpr NonemptySeparated(PA p, PB sep) : parser_{p}, separator_{sep} {}
|
constexpr NonemptySeparated(PA p, PB sep) : parser_{p}, separator_{sep} {}
|
||||||
std::optional<resultType> Parse(ParseState &state) const {
|
std::optional<resultType> Parse(ParseState &state) const {
|
||||||
return applyFunction(prepend<paType>, parser_, many(separator_ >> parser_))
|
return applyFunction<std::list<paType>>(
|
||||||
|
prepend<paType>, parser_, many(separator_ >> parser_))
|
||||||
.Parse(state);
|
.Parse(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue