Commit 30ef5d35 authored by Harris Hancock's avatar Harris Hancock

Add template/typename disambiguators

parent f47f0dad
...@@ -2271,7 +2271,7 @@ template <typename InitBrandFunc> ...@@ -2271,7 +2271,7 @@ template <typename InitBrandFunc>
uint64_t NodeTranslator::compileParamList( uint64_t NodeTranslator::compileParamList(
kj::StringPtr methodName, uint16_t ordinal, bool isResults, kj::StringPtr methodName, uint16_t ordinal, bool isResults,
Declaration::ParamList::Reader paramList, Declaration::ParamList::Reader paramList,
List<Declaration::BrandParameter>::Reader implicitParams, typename List<Declaration::BrandParameter>::Reader implicitParams,
InitBrandFunc&& initBrand) { InitBrandFunc&& initBrand) {
switch (paramList.which()) { switch (paramList.which()) {
case Declaration::ParamList::NAMED_LIST: { case Declaration::ParamList::NAMED_LIST: {
......
...@@ -230,7 +230,7 @@ private: ...@@ -230,7 +230,7 @@ private:
template <typename InitBrandFunc> template <typename InitBrandFunc>
uint64_t compileParamList(kj::StringPtr methodName, uint16_t ordinal, bool isResults, uint64_t compileParamList(kj::StringPtr methodName, uint16_t ordinal, bool isResults,
Declaration::ParamList::Reader paramList, Declaration::ParamList::Reader paramList,
List<Declaration::BrandParameter>::Reader implicitParams, typename List<Declaration::BrandParameter>::Reader implicitParams,
InitBrandFunc&& initBrand); InitBrandFunc&& initBrand);
// Compile a param (or result) list and return the type ID of the struct type. // Compile a param (or result) list and return the type ID of the struct type.
......
...@@ -408,7 +408,7 @@ static Declaration::Builder initMemberDecl( ...@@ -408,7 +408,7 @@ static Declaration::Builder initMemberDecl(
} }
template <typename BuilderType> template <typename BuilderType>
void initLocation(kj::parse::Span<List<Token>::Reader::Iterator> location, void initLocation(kj::parse::Span<typename List<Token>::Reader::Iterator> location,
BuilderType builder) { BuilderType builder) {
if (location.begin() < location.end()) { if (location.begin() < location.end()) {
builder.setStartByte(location.begin()->getStartByte()); builder.setStartByte(location.begin()->getStartByte());
......
...@@ -160,7 +160,7 @@ private: ...@@ -160,7 +160,7 @@ private:
template <typename Input, typename Output> template <typename Input, typename Output>
template <typename ParserImpl> template <typename ParserImpl>
constexpr ParserRef<Input, Output>::WrapperImpl<ParserImpl> constexpr typename ParserRef<Input, Output>::template WrapperImpl<ParserImpl>
ParserRef<Input, Output>::WrapperImplInstance<ParserImpl>::instance; ParserRef<Input, Output>::WrapperImplInstance<ParserImpl>::instance;
template <typename Input, typename ParserImpl> template <typename Input, typename ParserImpl>
......
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