skip to main
|
skip to sidebar
C++ Trivia
Monday, October 18, 2010
Typename
The following compiles:
template<typename T> void func() { typename T::A a; }
Reference:
More Exceptional C++
by Herb Sutter. Addison-Wesley, 2001, p. 33.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Deals
Amazon.com Widgets
My Workspace
19"-23"-19" with Tritton See2
Bloomberg Message Team
Last Row: Kwok, Marcos, Chintan, Jonathan, Steve, Rakan, Alex, Joel, Sam, Hector, Adam, Zak, Mike, Me, Middle Row: Linda, Di, Sid, Jun, Joe, Paul, Suganya, Steve, James, Hunter, Scott, Todd, Front Row: Venkat, Noah, Matt, Carilda, Gary
Dialogic Computer Telephony Team
Glenn, Ray, Naum, Larry, Lisa, Me, Jim, Hyung, John, Frank
Search This Blog
Followers
Blog Archive
►
2017
(260)
►
December
(40)
►
November
(40)
►
October
(50)
►
September
(40)
►
August
(40)
►
July
(50)
►
2014
(1)
►
November
(1)
►
2011
(1)
►
August
(1)
▼
2010
(718)
►
December
(249)
►
November
(255)
▼
October
(62)
Namespaces
Template Specialization Warning
Memory Alignment
Argument Dependent Lookup (ADL)
Function Hiding
Function Name Lookup
Header Files
Interface Principle
operator new() and operator delete()
Resource Acquisition Is Initialization (RAII)
alloca()
assert()
auto_ptr<T>
Const Autoptr<T>
Const
Const
Member Variables
Inlined Functions
String Implicit Conversions
Polymorphic Behavior
Traits Class
Traits Class
Dependent Names
Dependent Names
Dependent Name
Typename
Typename
Swap Trick
Iterators
Function Templates
Function Guarantee
Inlined Functions
Inlined Functions
Inlined Template Functions
Copy Constructors
Default Objects
auto_ptr
Function Try Block
Managed Resource Acquisition
Class with an auto_ptr as a Member
Protocol Classes
Calling a Virtual Function in A Base Constructor o...
Using auto_ptr with Arrays
Addresses of Zero Element Arrays
Template Parameters
Defining Functions inside Functions
Copy Initialization vs. Direct Initialization
Preferred Method of Initializing
Adding to the std Namespace
Using-declarations
Using-Directives
Using-declarations and Using-Directives
Template Typedef
String Initialization
Template Declarations
Double const Allowed in Template
Using sizeof to Find Type Information at Compile-Time
std::type_info
The typeid() Function
References to Pointers
Pass by Pointer vs. Pass by Reference
References to References
►
September
(31)
►
August
(16)
►
July
(16)
►
June
(15)
►
May
(15)
►
April
(15)
►
March
(15)
►
February
(14)
►
January
(15)
►
2009
(25)
►
December
(15)
►
November
(10)
About Me
C++ Trivia
View my complete profile
No comments:
Post a Comment