I figured out both my problems. Boost works fine in iphone projects, you just need to have all your source code end in .mm to enable objective-c++ and the other problem is caused because xcode cannot handle templates when it comes to code insight(or namespaces supposidly). Thats really unfortunate.