Welcome to MSDN Blogs
Sign in
|
Join
|
Help
Mohamed Mahmoud (El-Geish)
You wouldn't be here if you didn't know what you are looking for.
This Blog
About
Email
Syndication
RSS 2.0
Atom 1.0
Search
Tags
Algorithms
C++
Cartoon
Development
How To
i18n
Metrics
Security
Source Control
SQL
Testing
VSTF
WCF
News
Disclaimer: All posts are provided "AS IS" with no warranties, confering no rights, and expressing only my personal opinion, not Microsoft's.
Archives
November 2009 (2)
October 2009 (1)
September 2009 (1)
August 2009 (2)
July 2009 (1)
May 2009 (1)
April 2009 (19)
March 2009 (40)
February 2009 (3)
August 2008 (1)
July 2008 (2)
June 2008 (2)
May 2008 (1)
April 2008 (2)
March 2008 (3)
February 2008 (2)
January 2008 (6)
December 2007 (5)
November 2007 (1)
Blogroll
Jason Barile's Blog
Richard Berg's Blog
Brian Harry’s Blog
MSDN Links
MSDN
Windows Live
Windows Live Home
Browse by Tags
All Tags
»
C++
(RSS)
Development
Saturday, September 05, 2009 12:59 PM
C++: Calling a virtual function from a constructor is not polymorphic
In C++, if you call a virtual function form a constructor, it won’t be polymorphic, meaning that the following code won’t behave as you may have expected: class Foo { public : Foo() {
Posted by
mohamedg
|
1 Comments
Filed under:
Development
,
C++
Saturday, August 08, 2009 3:01 AM
Passing C++ Arrays by Value
Just in case you needed to, you can wrap an array into a struct/class and pass it by value to a function: template < typename T, int N> struct array { T value[N]; T & operator []( int i) { return value[i]; } }; template < typename T, int
Posted by
mohamedg
|
5 Comments
Filed under:
Development
,
C++
Saturday, July 18, 2009 11:56 PM
Proxy Design Pattern
One of the useful design patterns is the proxy design pattern, it allows you to control access to an object via a proxy and also saves you the startup and cleanup overheads as you instantiate only what you use upon request (lazy initialization). Take
Posted by
mohamedg
|
0 Comments
Filed under:
Development
,
C++