Freedom
Monday, July 20, 2009
Construct on First Use Idiom
You need to control the evaluation order of static initialization.
This approach solved the problem.
static Fred& X()
{
static Fred* obj = new Fred();
return *obj;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Peter_APIIT
View my complete profile
Facebook Badge
Peter Wong
Create your badge
Followers
Blog Archive
►
2022
(1)
►
May
(1)
►
2017
(2)
►
October
(2)
►
2010
(12)
►
August
(1)
►
June
(2)
►
May
(1)
►
January
(8)
▼
2009
(44)
►
December
(1)
►
October
(2)
►
September
(1)
►
August
(28)
▼
July
(12)
Polymorphic on Smar Pointer
Named Parameter Idiom
Construct on First Use Idiom
Named Constructor Idiom
Iteration
Invalid Iterator
Playing Game .........
AIX && Sparc 1085 32MB
Validation Logic ...... TL
HK
Traits
Out of Difficulties Makes Miracle
►
2008
(11)
►
November
(2)
►
October
(4)
►
September
(5)
No comments:
Post a Comment