Click here to Skip to main content
15,886,067 members
Articles / Programming Languages / C++

C++ Static Initialization Order: A New Solution to an Old Problem

Rate me:
Please Sign up or sign in to vote.
4.03/5 (8 votes)
26 May 2007CPOL8 min read 81.8K   178   28  
Presents an easy method to control order of initialization for static objects

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sTOBDemo", "sTOBDemo\sTOBDemo.vcproj", "{1719165A-5E34-4957-9220-CC8B93ECAF77}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Win32 = Debug|Win32
		Release|Win32 = Release|Win32
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{1719165A-5E34-4957-9220-CC8B93ECAF77}.Debug|Win32.ActiveCfg = Debug|Win32
		{1719165A-5E34-4957-9220-CC8B93ECAF77}.Debug|Win32.Build.0 = Debug|Win32
		{1719165A-5E34-4957-9220-CC8B93ECAF77}.Release|Win32.ActiveCfg = Release|Win32
		{1719165A-5E34-4957-9220-CC8B93ECAF77}.Release|Win32.Build.0 = Release|Win32
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO Querysoft Ltd
United Kingdom United Kingdom
I'm a UK based software engineering contractor, CEO of Querysoft Ltd, a candidate and activist for the UK Independence Party and occasionally I get time look at Code Project.

Comments and Discussions