diff options
author | Josh Blum | 2012-12-05 22:15:57 -0800 |
---|---|---|
committer | Josh Blum | 2012-12-05 22:15:57 -0800 |
commit | b5ce30933dd10754a43876ef50a0eed7040c6f97 (patch) | |
tree | 1a3b52a2a4fffb4d73aeef4b93e9488fb0f05c97 /include | |
parent | ae970f90e526b2ad32faf497caea1297eb46a195 (diff) | |
download | sandhi-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.hpp | 1 | ||||
-rw-r--r-- | include/gras/tag_iter.hpp | 5 | ||||
-rw-r--r-- | include/gras/tag_iter.i | 1 |
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> //////////////////////////////////////////////////////////////////////// |