Skip to content

Commit

Permalink
Units(C++): Fix misleading comment in template-nested-triangle-bracke…
Browse files Browse the repository at this point in the history
…ts.d
  • Loading branch information
delsner committed Jun 26, 2022
1 parent 0c762de commit 7dd0cdf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ template<typename T,int I,int J = I < V> K funcC(T t)
}

// The original comment: This stuff is allowed by C++03
// template<typename T,int I,int J = (I >> 2)> K funcD(T t)
// template<typename T,int I,int J = I >> 2> K funcD(T t)
// However, the above input is rejected with:
// error: default template arguments may not be used in function templates
// without `-std=c++11' or `-std=gnu++11'
Expand Down

0 comments on commit 7dd0cdf

Please sign in to comment.