J
Jason C
Hi, I am coming from C background and trying to learn C++. So bear with
me if the answer to my question is obvious.
I am trying to overload the "+" operator in different namespaces, like
this:
namespace A
{
std::string operator+(std::string const &a, std::string const &b);
}
namespace B
{
std::string operator+(std::string const &a, std::string const &b);
}
How do I explicitly call the + operator in either namespace, rather
than the + operator defined in the std::string?
me if the answer to my question is obvious.
I am trying to overload the "+" operator in different namespaces, like
this:
namespace A
{
std::string operator+(std::string const &a, std::string const &b);
}
namespace B
{
std::string operator+(std::string const &a, std::string const &b);
}
How do I explicitly call the + operator in either namespace, rather
than the + operator defined in the std::string?