Consider the following code:
#include <vector>
class Something
{
public:
Something( size_t const s ) : m_data( s ) {}
std::vector< char > getData() { return m_data; }
private:
std::vector< char > m_data;
};
int main()
{
std::auto_ptr< Something > smth( new Something( 42 ) );
std::vector< char > data( smth->getData() );
size_t const dataSize( data
(sic!)
When I press dot button I get dot replaced by "->" and when I press Backspace it turns back to "." as I expect:
There is no such problem when I have no constructor defined.
Using VS2008 and VA X 10.9.2068.0