diff options
author | MattPD <matdzb@gmail.com> | 2015-05-11 16:50:18 +0000 |
---|---|---|
committer | MattPD <matdzb@gmail.com> | 2015-05-11 16:50:18 +0000 |
commit | 447e060b81b601909c106fdb6ed676db9eed7c28 (patch) | |
tree | 0536c442aa310afc34e95579f513d3a5ed5636a6 /doc | |
parent | 494fa991c36dffdbd02a0d97e48e0b297efa9dc3 (diff) |
[Doc] Fix wording / typos in TemplateKeyword.dox
Diffstat (limited to 'doc')
-rw-r--r-- | doc/TemplateKeyword.dox | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/TemplateKeyword.dox b/doc/TemplateKeyword.dox index c9944ae05..e06aba7ba 100644 --- a/doc/TemplateKeyword.dox +++ b/doc/TemplateKeyword.dox @@ -85,11 +85,11 @@ The precise rules are rather complicated, but ignoring some subtleties we can su - A <em>dependent name</em> is name that depends (directly or indirectly) on a template parameter. In the example, \c dst is a dependent name because it is of type <tt>MatrixBase<Derived1></tt> which depends on the template parameter \c Derived1. -- If the code contains either one of the contructions <tt>xxx.yyy</tt> or <tt>xxx->yyy</tt> and \c xxx is a +- If the code contains either one of the constructs <tt>xxx.yyy</tt> or <tt>xxx->yyy</tt> and \c xxx is a dependent name and \c yyy refers to a member template, then the \c template keyword must be used before \c yyy, leading to <tt>xxx.template yyy</tt> or <tt>xxx->template yyy</tt>. -- If the code contains the contruction <tt>xxx::yyy</tt> and \c xxx is a dependent name and \c yyy refers to a - member typedef, then the \c typename keyword must be used before the whole construction, leading to +- If the code contains the construct <tt>xxx::yyy</tt> and \c xxx is a dependent name and \c yyy refers to a + member typedef, then the \c typename keyword must be used before the whole construct, leading to <tt>typename xxx::yyy</tt>. As an example where the \c typename keyword is required, consider the following code in \ref TutorialSparse |