name-lookup
Name-lookup of nested classes with inheritance
Is this guaranteed to work: struct A { struct Gold {}; }; struct B : public A { typedef Gold BaseGold; struct Gold {};[详细]
2023-03-27 21:40 分类:问答Ambiguous injected class name is not an error
What I read in the C++ standard about injected class names contradicts (as I see it) with the behavior of a sample program I will present shortly. Here\'s what I read:[详细]
2023-03-27 02:23 分类:问答String lookup error for global variable in CUDA?
I have something like either: __constant__ double PNT[ NUMCOORDS ]; __device__ double PNT[ NUMCOORDS ];[详细]
2023-03-14 11:38 分类:问答namelookup with Unqualified name : C++0x draft n3290
A point from the ISO C++ Draft n3290 : 3.4.0 2nd point A name “looked up in the context of an expression” is looked up as an unqualified name in the 开发者_运维技巧scope where the expression is f[详细]
2023-03-12 22:51 分类:问答3.4.2 Argument-dependent name lookup from n3290 Draft
A point from ISO draft n3290 section 3.4.2 paragraph 1: When the postfix-expression in a function call is an unqualified-id, other namespaces not considered during the usual unqualified lookup may b[详细]
2023-03-10 07:55 分类:问答Why does this program swap the values?
I have the following code: #include \"stdafx.h\" #include <iostream> using namespace std; #include <conio.h>[详细]
2023-03-04 12:57 分类:问答Name lookup Clarification
$10.2/4- \"[ Note: Looking up a name in an elaborated-type-specifier (3.4.4) or base-specifier (Clause 10), for[详细]
2023-01-23 16:33 分类:问答Multiple Inheritance Template Class
class messageA { }; class messageB { }; template<class T> clas开发者_C百科s queue { public: virtual ~queue() {}[详细]
2023-01-09 03:31 分类:问答Erroneous private base class inaccessible?
Compiling this code using g++ 4.2.1: struct S { }; template<typename T> struct ST { }; template<typename BaseType>[详细]
2023-01-06 15:12 分类:问答Why doesn't ADL find function templates?
What part of the C++ specification restricts argument dependent lookup from finding function templates in the set of associated namespaces? In other words, why does the last call in main below fail to[详细]
2023-01-02 02:31 分类:问答