Skip to main content
GameDev.net gamedev.net
🔒 Locked

Boost fast_pool_allocator with string

Started by lephyrius May 10, 2009 at 2:34 AM 1 replies 4.5k views
Original Post
lephyrius
lephyrius
Im trying to use latest version of boost. So I want to use boost fast_pool_allocator for creating std strings. So I typedef in order to get it working in the whole program:

typedef std::basic_string<char, std::char_traits<char>, boost::fast_pool_allocator<char> > String;


I use Xcode / GCC to compile for iPhone. The problem is now that I get these errors: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/usr/include/c++/4.0.0/bits/basic_string.h:117: error: invalid use of undefined type 'struct boost::fast_pool_allocator' /Users/lephyrius/Programmering/boost_1_39_0/boost/pool/poolfwd.hpp:69: error: declaration of 'struct boost::fast_pool_allocator' So how do I fix these errors?
SiCrane
SiCrane
Did you #include ?
lephyrius
lephyrius
Yay! It worked perfectly.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.