Hi, what does the two consecutive colons in the text with bold letters mean?
1 2 3 4 5 6 7 8 9 10
|
static void func ()
{
}
ctor::ctor ()
: member_1 (),
member_2 (::func ()),
member_3 ()
{
}
| |
Is this a standard c++ syntax?
Last edited on
Yes it is standard syntax and it means that func is in the global namespace. This could be useful if the class also has a function named func.