Hi.
I want to create a namespace called 'my_Lib', and I declare
it at the beginning of my code. Afterwards, I call it within
a function:
------------------------//---------------------------
include's
...
...
namespace my_Lib{
using std::string;
string Convert( const int& s);
inline string Convert( const int& s)
{
...
};
}
...
...
myfunction1(){
...
}
...
...
myfunction2() {
using std::string;
using namespace my_Lib;
int number=50;
string My_Value;
MyValue = Convert( number ); <<<error line
}
...
-------------------//----------------------------------
But I get this error message:
**********
error C2065: 'Convert' : undeclared identifier
**********
I would be extremely obliged if anybody could explain me how to
use my namespace within a function.
Regards.
I want to create a namespace called 'my_Lib', and I declare
it at the beginning of my code. Afterwards, I call it within
a function:
------------------------//---------------------------
include's
...
...
namespace my_Lib{
using std::string;
string Convert( const int& s);
inline string Convert( const int& s)
{
...
};
}
...
...
myfunction1(){
...
}
...
...
myfunction2() {
using std::string;
using namespace my_Lib;
int number=50;
string My_Value;
MyValue = Convert( number ); <<<error line
}
...
-------------------//----------------------------------
But I get this error message:
**********
error C2065: 'Convert' : undeclared identifier
**********
I would be extremely obliged if anybody could explain me how to
use my namespace within a function.
Regards.