Environment: Visual Studio 2008
Language: C++/CLI
Visual Assist: 10.5.1715.0 (Trial version)
the using namespace directive seems to be confusing Visual Assist X. Fully qualified function definitions appear to help Visual Assist resolve the references, however since there is quite a bit of existing (and compiling) code, I would like to avoid changing the world.
Is there any way to get auto-complete and pre-compile error checking working without fully qualifying all the definitions?
Sample Code:
VXAssistTest.h
-----
#pragma once
using namespace System;
namespace VXAssistTest {
public ref class Class1{
void DoQualifiedStuff();
void DoStuff();
void DoMoreStuff();
};
}
VXAssistTest.cpp
-----
#include "stdafx.h"
#include "VXAssistTest.h"
using namespace VXAssistTest;
void VXAssistTest::Class1::DoQualifiedStuff()
{
// Visual Assist auto complete works fine.
// No errors flagged.
this->DoMoreStuff();
}
void Class1::DoStuff()
{
// Auto complete does not work.
// following line is flagged in error.
this->DoMoreStuff();
}
void Class1::DoMoreStuff() {}
Thanks.