Last active
December 31, 2015 20:59
-
-
Save uliwitness/8043486 to your computer and use it in GitHub Desktop.
Looks like the 10.9 SDK breaks code like the following. Anyone know how I can fix that w/o moving the function out of the class? Works fine with the 10.8 SDK.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Carlson | |
{ | |
class CToken | |
{ | |
public: | |
static void GoNextToken( const char* fname, std::deque<CToken>::iterator& tokenItty, std::deque<CToken>& tokens ); | |
}; | |
} | |
/* Gives Error like: | |
In file included from /Users/uli/Programming/Stacksmith/Forge/CParser.cpp:14: | |
In file included from /Users/uli/Programming/Stacksmith/Forge/CParser.h:22: | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/deque:906:49: error: invalid application of 'sizeof' to an incomplete type 'value_type' (aka 'Carlson::CToken') | |
static const difference_type __block_size = sizeof(value_type) < 256 ? 4096 / sizeof(value_type) : 16; | |
^~~~~~~~~~~~~~~~~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/deque:1170:15: note: in instantiation of template class 'std::__1::__deque_base<Carlson::CToken, std::__1::allocator<Carlson::CToken> >' requested here | |
: private __deque_base<_Tp, _Allocator> | |
^ | |
In file included from /Users/uli/Programming/Stacksmith/Forge/CParser.cpp:14: | |
In file included from /Users/uli/Programming/Stacksmith/Forge/CParser.h:23: | |
/Users/uli/Programming/Stacksmith/Forge/CToken.h:89:52: note: in instantiation of template class 'std::__1::deque<Carlson::CToken, std::__1::allocator<Carlson::CToken> >' requested here | |
static void GoNextToken( const char* fname, std::deque<CToken>::iterator& tokenItty, std::deque<CToken>& tokens ); | |
^ | |
/Users/uli/Programming/Stacksmith/Forge/CToken.h:39:8: note: definition of 'Carlson::CToken' is not complete until the closing '}' | |
class CToken | |
^ | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment