summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2012-11-03 00:15:07 -0700
committerJosh Blum2012-11-03 00:15:07 -0700
commit89c99cbdbedda7536677cc5a1a32f5dbb3b3dcb4 (patch)
tree175a7121f1bebdbc956f50e3bc7032953ffa2a08
parenta7912fd8a50a1a2dad436d36a69efd238354e30b (diff)
downloadsandhi-89c99cbdbedda7536677cc5a1a32f5dbb3b3dcb4.tar.gz
sandhi-89c99cbdbedda7536677cc5a1a32f5dbb3b3dcb4.tar.bz2
sandhi-89c99cbdbedda7536677cc5a1a32f5dbb3b3dcb4.zip
fixing warnings makes more warnings
-rw-r--r--include/gras/element.i15
1 files changed, 3 insertions, 12 deletions
diff --git a/include/gras/element.i b/include/gras/element.i
index a5e9173..364328c 100644
--- a/include/gras/element.i
+++ b/include/gras/element.i
@@ -22,28 +22,19 @@
%}
////////////////////////////////////////////////////////////////////////
-// Create bogus base classes to kill warnings
+// remove base class warning
////////////////////////////////////////////////////////////////////////
-namespace boost
-{
- template <typename T>
- struct enable_shared_from_this{};
- template <typename T>
- struct shared_ptr{};
-}
-
-%template () boost::shared_ptr< gras::ElementImpl >;
-%template () boost::enable_shared_from_this< gras::Element >;
+#pragma SWIG nowarn=401
////////////////////////////////////////////////////////////////////////
// Export swig element comprehension
////////////////////////////////////////////////////////////////////////
+%include <std_string.i>
%include <gras/element.hpp>
////////////////////////////////////////////////////////////////////////
// Create a __str__ for this object
////////////////////////////////////////////////////////////////////////
-%include <std_string.i>
namespace gras
{