typo in example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7273 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6edd2e4561
commit
3e39c8d922
1 changed files with 2 additions and 2 deletions
|
|
@ -3406,12 +3406,12 @@ in a different namespace. For example:
|
||||||
<div class="code">
|
<div class="code">
|
||||||
<pre>
|
<pre>
|
||||||
namespace foo {
|
namespace foo {
|
||||||
template<typename T> max(T a, T b) { return a > b ? a : b; }
|
template<typename T> T max(T a, T b) { return a > b ? a : b; }
|
||||||
}
|
}
|
||||||
|
|
||||||
using foo::max;
|
using foo::max;
|
||||||
|
|
||||||
%template(maxint) max<int> // Okay.
|
%template(maxint) max<int>; // Okay.
|
||||||
%template(maxfloat) foo::max<float>; // Okay (qualified name).
|
%template(maxfloat) foo::max<float>; // Okay (qualified name).
|
||||||
|
|
||||||
namespace bar {
|
namespace bar {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue