Click here to Skip to main content
12,293,884 members (57,620 online)
Click here to Skip to main content

Tagged as

Stats

16.1K views
229 downloads
9 bookmarked
Posted

Solution for Multiple enable_shared_from_this in Inheritance Tree

, 21 Nov 2011 MIT
The initial implementation of enable_shared_from_this of STL or the one from Boost C++ causes crash if it appears more than once in the inheritance tree of a user class. This is a solution for the problem. (search tag: enable shared from this)

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C++ Express 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EnableSharedFromThis", "EnableSharedFromThis.vcxproj", "{70585C65-5B89-40BF-85E7-F133D6B1D85E}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Win32 = Debug|Win32
		Release|Win32 = Release|Win32
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{70585C65-5B89-40BF-85E7-F133D6B1D85E}.Debug|Win32.ActiveCfg = Debug|Win32
		{70585C65-5B89-40BF-85E7-F133D6B1D85E}.Debug|Win32.Build.0 = Debug|Win32
		{70585C65-5B89-40BF-85E7-F133D6B1D85E}.Release|Win32.ActiveCfg = Release|Win32
		{70585C65-5B89-40BF-85E7-F133D6B1D85E}.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 MIT License

Share

About the Author

Philippe Cayouette
Software Developer (Senior) CAE Inc.
Canada Canada
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160525.2 | Last Updated 21 Nov 2011
Article Copyright 2011 by Philippe Cayouette
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid