summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJosh Blum2012-12-05 22:15:57 -0800
committerJosh Blum2012-12-05 22:15:57 -0800
commitb5ce30933dd10754a43876ef50a0eed7040c6f97 (patch)
tree1a3b52a2a4fffb4d73aeef4b93e9488fb0f05c97 /include
parentae970f90e526b2ad32faf497caea1297eb46a195 (diff)
downloadsandhi-b5ce30933dd10754a43876ef50a0eed7040c6f97.tar.gz
sandhi-b5ce30933dd10754a43876ef50a0eed7040c6f97.tar.bz2
sandhi-b5ce30933dd10754a43876ef50a0eed7040c6f97.zip
forward declare Tag in the tag iter header
Diffstat (limited to 'include')
-rw-r--r--include/gras/block.hpp1
-rw-r--r--include/gras/tag_iter.hpp5
-rw-r--r--include/gras/tag_iter.i1
3 files changed, 5 insertions, 2 deletions
diff --git a/include/gras/block.hpp b/include/gras/block.hpp
index 70654bf..3899561 100644
--- a/include/gras/block.hpp
+++ b/include/gras/block.hpp
@@ -6,6 +6,7 @@
#include <gras/element.hpp>
#include <gras/sbuffer.hpp>
#include <gras/tag_iter.hpp>
+#include <gras/tags.hpp>
#include <gras/work_buffer.hpp>
#include <vector>
#include <string>
diff --git a/include/gras/tag_iter.hpp b/include/gras/tag_iter.hpp
index 81e3c8a..5e168c1 100644
--- a/include/gras/tag_iter.hpp
+++ b/include/gras/tag_iter.hpp
@@ -4,12 +4,15 @@
#define INCLUDED_GRAS_TAG_ITER_HPP
#include <gras/gras.hpp>
-#include <gras/tags.hpp>
#include <boost/range.hpp> //iterator range
#include <vector>
namespace gras
{
+
+ //! forward declared Tag type
+ struct Tag;
+
//! Iterator return type stl and boost compliant
typedef boost::iterator_range<std::vector<Tag>::const_iterator> TagIter;
diff --git a/include/gras/tag_iter.i b/include/gras/tag_iter.i
index 91d9054..4d8b69a 100644
--- a/include/gras/tag_iter.i
+++ b/include/gras/tag_iter.i
@@ -8,7 +8,6 @@
%}
%include <gras/gras.hpp>
-%import <gras/tags.i>
%include <gras/tag_iter.hpp>
////////////////////////////////////////////////////////////////////////