scope-resolution-operator Questions
1
Solved
I am looking at someone else's C++ code (note I am not fluent in C++).
Within the class, there is this member function:
void ClassYaba::funcname()
{
...
::foo();
...
}
There is no member functi...
Townshend asked 14/6, 2022 at 22:15
3
Solved
This question got me wondering whether it is ever useful/necessary to fully qualify class names (including the global scope operator) in an out-of-class member function definition.
On the one hand...
Markusmarl asked 18/11, 2019 at 12:4
9
Solved
I found this line of a code in a class which I have to modify:
::Configuration * tmpCo = m_configurationDB;//pointer to current db
and I don't know what exactly means the double colon prepended ...
Housetop asked 24/11, 2010 at 16:24
4
Solved
In c++ is there any difference between these 3 blocks of code:
MyClass->m_Integer // 1
MyClass::m_Integer // 2
MyClass.m_Integer // 3
Grab asked 1/8, 2011 at 5:1
4
Solved
What does this symbol mean?
AirlineTicket::AirlineTicket()
Monaco asked 17/3, 2011 at 21:33
5
Solved
If you go to the accepted answer of this post
Could someone please elaborate on why he uses:
double temp = ::atof(num.c_str());
and not simply
double temp = atof(num.c_str());
Also, is...
Fauch asked 17/2, 2010 at 17:5
2
I've been using the Boost libraries, and in Boost.Exception, I've noticed code like the following:
#define BOOST_THROW_EXCEPTION(x) ::boost::throw_exception(x)
Just out of curiosity: what ...
Fermin asked 12/1, 2010 at 23:56
1
© 2022 - 2024 — McMap. All rights reserved.