Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2003-01-21 21:31:50 +0300
committerKent Mein <mein@cs.umn.edu>2003-01-21 21:31:50 +0300
commit3bdb9b7f39e75d381d87fd7196cb0ddafc79aa63 (patch)
tree86f668bcc75e2d454f23d90d0201defcb6bf1964 /intern/container
parentb01847593532f8f7157b5d23a942d8f12455cbfc (diff)
This commit may need to be reversed, for some of the older compilers but
I'm guessing its safe. Basically it fixes a warning about typedef usage. Reading the docs on gcc-3.2 it says that classes that use a typedef need to have the keyword "typename" infront of them according to the c++ standard. Currently it only produces a warning but it may be an error later, so I figured why not fix it. Kent
Diffstat (limited to 'intern/container')
-rw-r--r--intern/container/CTR_TaggedSetOps.h48
1 files changed, 32 insertions, 16 deletions
diff --git a/intern/container/CTR_TaggedSetOps.h b/intern/container/CTR_TaggedSetOps.h
index aefe8217389..0a0367ec673 100644
--- a/intern/container/CTR_TaggedSetOps.h
+++ b/intern/container/CTR_TaggedSetOps.h
@@ -89,8 +89,10 @@ public :
// iterate through individual members of each vector
// mark each obejct that the index points to
- std::vector< std::vector<IndexType> >::const_iterator last_vector = index_list.end();
- std::vector< std::vector<IndexType> >::const_iterator start_vector = index_list.begin();
+ typename std::vector< std::vector<IndexType> >::const_iterator
+ last_vector = index_list.end();
+ typename std::vector< std::vector<IndexType> >::const_iterator
+ start_vector = index_list.begin();
// FIXME some temporary space
@@ -101,8 +103,10 @@ public :
for (; start_vector != last_vector; ++start_vector) {
- std::vector<IndexType>::const_iterator last_index = start_vector->end();
- std::vector<IndexType>::const_iterator start_index = start_vector->begin();
+ typename std::vector<IndexType>::const_iterator
+ last_index = start_vector->end();
+ typename std::vector<IndexType>::const_iterator
+ start_index = start_vector->begin();
for (; start_index != last_index; ++start_index) {
@@ -123,8 +127,10 @@ public :
// now iterate through the union and pull out all those with the right tag
- std::vector<IndexType>::const_iterator last_index = temp_union.end();
- std::vector<IndexType>::const_iterator start_index = temp_union.begin();
+ typename std::vector<IndexType>::const_iterator last_index =
+ temp_union.end();
+ typename std::vector<IndexType>::const_iterator start_index =
+ temp_union.begin();
for (; start_index != last_index; ++start_index) {
@@ -155,8 +161,10 @@ public :
std::vector<IndexType> &output
) {
- std::vector<IndexType>::const_iterator last_index = a.end();
- std::vector<IndexType>::const_iterator start_index = a.begin();
+ typename std::vector<IndexType>::const_iterator last_index =
+ a.end();
+ typename std::vector<IndexType>::const_iterator start_index =
+ a.begin();
for (; start_index != last_index; ++start_index) {
ObjectType & prim = primitives[*start_index];
@@ -194,13 +202,17 @@ public :
// iterate through individual members of each vector
// mark each obejct that the index points to
- std::vector< std::vector<IndexType> >::const_iterator last_vector = index_list.end();
- std::vector< std::vector<IndexType> >::iterator start_vector = index_list.begin();
+ typename std::vector< std::vector<IndexType> >::const_iterator
+ last_vector = index_list.end();
+ typename std::vector< std::vector<IndexType> >::iterator
+ start_vector = index_list.begin();
for (; start_vector != last_vector; ++start_vector) {
- std::vector<IndexType>::const_iterator last_index = start_vector->end();
- std::vector<IndexType>::iterator start_index = start_vector->begin();
+ typename std::vector<IndexType>::const_iterator
+ last_index = start_vector->end();
+ typename std::vector<IndexType>::iterator
+ start_index = start_vector->begin();
for (; start_index != last_index; ++start_index) {
@@ -216,8 +228,10 @@ public :
// now iterate through the union and reset the tags
- std::vector<IndexType>::const_iterator last_index = output.end();
- std::vector<IndexType>::iterator start_index = output.begin();
+ typename std::vector<IndexType>::const_iterator last_index =
+ output.end();
+ typename std::vector<IndexType>::iterator start_index =
+ output.begin();
for (; start_index != last_index; ++start_index) {
@@ -239,8 +253,10 @@ public :
// iterate through b mark all
// iterate through a and add to output all unmarked
- std::vector<IndexType>::const_iterator last_index = b.end();
- std::vector<IndexType>::iterator start_index = b.begin();
+ typename std::vector<IndexType>::const_iterator last_index =
+ b.end();
+ typename std::vector<IndexType>::iterator start_index =
+ b.begin();
for (; start_index != last_index; ++start_index) {