-
Notifications
You must be signed in to change notification settings - Fork 771
[temp] Replace 'could' and 'might' #4359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
one class \tcode{List<T>} for every type \tcode{T}, | ||
each describing a linked list of elements of type \tcode{T}. | ||
Similarly, a class template \tcode{Array} describing a contiguous, | ||
dynamic array might be defined like this: | ||
dynamic array can be defined like this: | ||
\begin{codeblock} | ||
template<class T> class Array { | ||
T* v; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Can't comment on this directly because github is terrible.) There's a bogus "may" a few lines below that should be a "can". ISO/CS noticed and called out this one in our discussion so we need to fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may -> can
source/templates.tex
Outdated
f(a,b); // error: \tcode{T} can be \tcode{A} or \tcode{B} | ||
f(b,a); // error: \tcode{T} can be \tcode{A} or \tcode{B} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is right; it can't be either because this is ill-formed. How about:
"error: T
deduced as both A
and B
"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
source/templates.tex
Outdated
f(g2); // error: \tcode{T} can be \tcode{char} or \tcode{int} | ||
f(g3); // error: \tcode{U} can be \tcode{char} or \tcode{float} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
as directed by ISO/CS.
applied, squashed + force-pushed |
as directed by ISO/CS.
Partially addresses #4319