Questions tagged [token-name-resolution]
21 questions
1
vote
3 answers
namespace detection
I'm trying to write a log library which would use an external tool
To make the library more natural to use, i would like to be able to detect the namespace in which cout is used.
concretly the result should be used like this
namespace A
{
void…

tiridactil
- 389
- 1
- 11
0
votes
1 answer
C++ - What would happen if two library uses same source code for build
I have doubt is it possible if I built lib1.so using source file common.cppand lib2.so using same source file common.cpp again. Now I want to build my application APP using this two library ,
My question are
is it possible Or it will give me…

Arun Pal
- 687
- 7
- 28
0
votes
1 answer
Templates :Name resolution -->IS this statement is true while inheritance?
This is the statement from ISO C++ Standard 14.6/6:
Within the definition of a class template or within the definition of a member of a class template, the keyword typename is not required when referring to the unqualified name of a previously…
BE Student
0
votes
2 answers
C++ Custom Header File - Syntax Error C2061: identifier
I've been looking into Syntax Error C2061 for a while now, and I have come to understand that it is often caused by circular dependencies of header files. However, I believe I should've resolved this in my files yet I continue to have the…

Christopher Orchard
- 1,267
- 2
- 12
- 15
-1
votes
1 answer
How can I call a member from a templated base class on a templated derived class?
With this setup:
template
struct Base {
void foo();
};
class Derived : Base<1> {
static void bar(Derived *d) {
//No syntax errors here
d->Base<1>::foo();
}
};
Everything works fine. However, with this…

Eric
- 95,302
- 53
- 242
- 374
-4
votes
2 answers
How 'using namespace' works in C++
I am trying to understand namespaces in C++. I read that there are two ways of accessing namespace variables and functions. First one is to write using :: and second one is by using using directive at the top and not writing it again and again. I…

shiwang
- 150
- 1
- 13