Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Whenever I have using std::vector; in my translation unit, Xcode autocompletes vector to std::__1::vector. The same is true for all the other classes I've tried from the std namespace.

This is very irritating, as I've been in the habbit of typing vec and then hitting return for vector, or str return for string, but instead I have to deletedeletedeletedeletedelete every time because Xcode writes out std::__1::vector<class _Tp> or std::__1::string instead.

What's going on here?

I'm using Xcode 4.6.2 on OS X 10.8.3.

share|improve this question
2  
In libc++ std::__1::vector is the real name of the template. libc++ uses inline namespaces to do versioning and provide some protection against accidentally linking ABI incompatible implementations together. The inline namespace it uses is __1. I'm not sure why autocomplete is acting that way for you, as I'm not seeing the same thing. –  bames53 Jun 2 '13 at 1:45
    
Please file a bug report... –  Marc Glisse Jun 2 '13 at 6:27
    
@MarcGlisse How do I do that? –  anthropomorphic Jun 5 '13 at 23:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.