0
votes

I am getting the errors C4430: missing type specifier - int assumed. Note: C++ does not support default-int C2143: syntax error : missing ';' before '<' C2238: C2238: unexpected token(s) preceding ';' on the following line.

typedef STD_::reverse_bidirectional_iterator<iterator, DataObj>; reverse_iterator;

What do I need to do to get rid of these errors? This is being done in Visual Studio 2012 on Windows 8.

2
#define STD_std It should be from DTL. This project wasn't made by me so I'm not sure where exactly it's defined.Daxter304
Did you ever get this to work? I'm having the same problem when trying to compile DTL 1.37 with Visual Studio 2013. (Note: The extra ; mentioned in the answers below is a red herring - it doesn't actually exist in this header and was a typo by the OP.)aldo

2 Answers

2
votes

Get rid of the ; before reverse_iterator.

1
votes
typedef STD_::reverse_bidirectional_iterator<iterator, DataObj>; reverse_iterator;
                                                               ^

That semicolon should be removed