tive types. These are tricky to use from Go as they end up as
pointers, which only work when the C++ and Go types correspond
precisely.

<h2>The SWIG interface</h2>

A simple SWIG interface for this can be built by simply grabbing the
header file like this:

<blockquote>
<pre>
/* File : example.i */
%module example

%{
#include "example.h"
%}

/* Let's just grab the original header file here */
%include "example.h"

/* Now instantiate some specific template declarations */

%template(maxint) max<int>;
%temp