diff --git a/testMultipleDerviation/testMultipleDerviation.cpp b/cpp/multiple_derivation.cpp similarity index 88% rename from testMultipleDerviation/testMultipleDerviation.cpp rename to cpp/multiple_derivation.cpp index 80e0073..bc00e51 100644 --- a/testMultipleDerviation/testMultipleDerviation.cpp +++ b/cpp/multiple_derivation.cpp @@ -1,7 +1,6 @@ -// testMultipleDerviation.cpp : Defines the entry point for the console application. -// -#include "stdafx.h" +#include +#include class a { @@ -80,7 +79,7 @@ public: }; -int main(int argc, _TCHAR* argv[]) +int main(int argc, const char * argv[]) { const int nAmount = 1000000000; @@ -90,7 +89,7 @@ int main(int argc, _TCHAR* argv[]) int nWins1 = 0; int nWins2 = 0; - for ( ; true ; ) + //for ( ; true ; ) { DWORD dwStart = GetTickCount(); diff --git a/test_locale/testLocale/testLocale.cpp b/cpp/std_locale.cpp similarity index 58% rename from test_locale/testLocale/testLocale.cpp rename to cpp/std_locale.cpp index 13ba59b..e310e7e 100644 --- a/test_locale/testLocale/testLocale.cpp +++ b/cpp/std_locale.cpp @@ -1,8 +1,18 @@ +/* Check cf5-opt.vim defs. +VIM: let g:lcppflags="-std=c++11 -O2 -pthread" +VIM: let g:wcppflags="/O2 /EHsc /DWIN32" +VIM: let g:cppflags=g:Iboost.g:Itbb +VIM: let g:ldflags=g:Lboost.g:Ltbb.g:tbbmalloc.g:tbbmproxy +VIM: let g:ldlibpath=g:Bboost.g:Btbb +VIM: let g:argv="" +VIM-: let g:cf5output=0 +*/ #include #include int main(int argc, const char* argv[]) +try { std::cout << "name of current global locale: " << std::locale().name() << "\n"; std::cout << "name of classic C locale: " << std::locale::classic().name() << "\n"; @@ -15,4 +25,8 @@ int main(int argc, const char* argv[]) std::cerr << "us: " << 1.1 << std::endl; return 0; } - +catch (...) +{ + std::cerr << "crash!!!" << std::endl; + return 1; +} diff --git a/t/stdafx.cpp b/t/stdafx.cpp deleted file mode 100644 index b2e2f51..0000000 --- a/t/stdafx.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// testConstructorCall.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information - -#include "stdafx.h" - -// TODO: reference any additional headers you need in STDAFX.H -// and not in this file diff --git a/t/stdafx.h b/t/stdafx.h deleted file mode 100644 index 0be0e6f..0000000 --- a/t/stdafx.h +++ /dev/null @@ -1,17 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// - -#pragma once - -#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. -#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows. -#endif - -#include -#include - - - -// TODO: reference additional headers your program requires here diff --git a/t/testConstructorCall.sln b/t/testConstructorCall.sln deleted file mode 100644 index 72a5bff..0000000 --- a/t/testConstructorCall.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testConstructorCall", "testConstructorCall.vcproj", "{BB1AE9BF-69DD-4638-933A-2E513E939A2C}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {BB1AE9BF-69DD-4638-933A-2E513E939A2C}.Debug|Win32.ActiveCfg = Debug|Win32 - {BB1AE9BF-69DD-4638-933A-2E513E939A2C}.Debug|Win32.Build.0 = Debug|Win32 - {BB1AE9BF-69DD-4638-933A-2E513E939A2C}.Release|Win32.ActiveCfg = Release|Win32 - {BB1AE9BF-69DD-4638-933A-2E513E939A2C}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/t/testConstructorCall.vcproj b/t/testConstructorCall.vcproj deleted file mode 100644 index c1f2b61..0000000 --- a/t/testConstructorCall.vcproj +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/testMultipleDerviation/stdafx.cpp b/testMultipleDerviation/stdafx.cpp deleted file mode 100644 index 3c9199e..0000000 --- a/testMultipleDerviation/stdafx.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// testMultipleDerviation.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information - -#include "stdafx.h" - -// TODO: reference any additional headers you need in STDAFX.H -// and not in this file diff --git a/testMultipleDerviation/stdafx.h b/testMultipleDerviation/stdafx.h deleted file mode 100644 index 22809e8..0000000 --- a/testMultipleDerviation/stdafx.h +++ /dev/null @@ -1,19 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// - -#pragma once - -#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. -#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows. -#endif - -#include -#include - -#include - - - -// TODO: reference additional headers your program requires here diff --git a/testMultipleDerviation/testMultipleDerviation.sln b/testMultipleDerviation/testMultipleDerviation.sln deleted file mode 100644 index 3c90091..0000000 --- a/testMultipleDerviation/testMultipleDerviation.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testMultipleDerviation", "testMultipleDerviation.vcproj", "{79D765B8-B695-498E-B1E2-BDC2A6474311}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {79D765B8-B695-498E-B1E2-BDC2A6474311}.Debug|Win32.ActiveCfg = Debug|Win32 - {79D765B8-B695-498E-B1E2-BDC2A6474311}.Debug|Win32.Build.0 = Debug|Win32 - {79D765B8-B695-498E-B1E2-BDC2A6474311}.Release|Win32.ActiveCfg = Release|Win32 - {79D765B8-B695-498E-B1E2-BDC2A6474311}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/testMultipleDerviation/testMultipleDerviation.vcproj b/testMultipleDerviation/testMultipleDerviation.vcproj deleted file mode 100644 index cf51abb..0000000 --- a/testMultipleDerviation/testMultipleDerviation.vcproj +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/testOutputIterator/stdafx.cpp b/testOutputIterator/stdafx.cpp deleted file mode 100644 index b738d19..0000000 --- a/testOutputIterator/stdafx.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// testOutputIterator.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information - -#include "stdafx.h" - -// TODO: reference any additional headers you need in STDAFX.H -// and not in this file diff --git a/testOutputIterator/stdafx.h b/testOutputIterator/stdafx.h deleted file mode 100644 index 0be0e6f..0000000 --- a/testOutputIterator/stdafx.h +++ /dev/null @@ -1,17 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// - -#pragma once - -#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. -#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows. -#endif - -#include -#include - - - -// TODO: reference additional headers your program requires here diff --git a/testOutputIterator/testOutputIterator.cpp b/testOutputIterator/testOutputIterator.cpp deleted file mode 100644 index 6ca6ed0..0000000 --- a/testOutputIterator/testOutputIterator.cpp +++ /dev/null @@ -1,37 +0,0 @@ -// testOutputIterator.cpp : Defines the entry point for the console application. -// - -#include "stdafx.h" -#include -#include -#include - - -int _tmain(int argc, _TCHAR* argv[]) -{ -#if 0 - std::vector v; - std::vector::iterator ot = v.begin(); - - *++ot = 1; - *++ot = 2; - *++ot = 3; - *++ot = 4; -#endif - - std::list l; - l.push_back( 1 ); - l.push_back( 2 ); -// l.splice( l.begin(), l, l.begin() ); - - std::cout << &(*l.begin()) << " " << &(*++l.begin()) << " " << *l.begin() << " " << *++l.begin() << std::endl; - - std::swap( l.begin(), ++l.begin() ); - - std::cout << &(*l.begin()) << " " << &(*++l.begin()) << " " << *l.begin() << " " << *++l.begin() << std::endl; - - - - return 0; -} - diff --git a/testOutputIterator/testOutputIterator.sln b/testOutputIterator/testOutputIterator.sln deleted file mode 100644 index 9c831ab..0000000 --- a/testOutputIterator/testOutputIterator.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testOutputIterator", "testOutputIterator.vcproj", "{2F4EF401-584C-4DD9-B360-115A4620CF89}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {2F4EF401-584C-4DD9-B360-115A4620CF89}.Debug|Win32.ActiveCfg = Debug|Win32 - {2F4EF401-584C-4DD9-B360-115A4620CF89}.Debug|Win32.Build.0 = Debug|Win32 - {2F4EF401-584C-4DD9-B360-115A4620CF89}.Release|Win32.ActiveCfg = Release|Win32 - {2F4EF401-584C-4DD9-B360-115A4620CF89}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/testOutputIterator/testOutputIterator.vcproj b/testOutputIterator/testOutputIterator.vcproj deleted file mode 100644 index 5d563ad..0000000 --- a/testOutputIterator/testOutputIterator.vcproj +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/testTemplate/testTemplate.sln b/testTemplate/testTemplate.sln deleted file mode 100644 index 55fc2c3..0000000 --- a/testTemplate/testTemplate.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testTemplate", "testTemplate\testTemplate.vcproj", "{3BE8B06E-AB57-42B1-AF54-D91EB3C0D1E3}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {3BE8B06E-AB57-42B1-AF54-D91EB3C0D1E3}.Debug|Win32.ActiveCfg = Debug|Win32 - {3BE8B06E-AB57-42B1-AF54-D91EB3C0D1E3}.Debug|Win32.Build.0 = Debug|Win32 - {3BE8B06E-AB57-42B1-AF54-D91EB3C0D1E3}.Release|Win32.ActiveCfg = Release|Win32 - {3BE8B06E-AB57-42B1-AF54-D91EB3C0D1E3}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/testTemplate/testTemplate/stdafx.cpp b/testTemplate/testTemplate/stdafx.cpp deleted file mode 100644 index de2683f..0000000 --- a/testTemplate/testTemplate/stdafx.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// testTemplate.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information - -#include "stdafx.h" - -// TODO: reference any additional headers you need in STDAFX.H -// and not in this file diff --git a/testTemplate/testTemplate/stdafx.h b/testTemplate/testTemplate/stdafx.h deleted file mode 100644 index 0be0e6f..0000000 --- a/testTemplate/testTemplate/stdafx.h +++ /dev/null @@ -1,17 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// - -#pragma once - -#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. -#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows. -#endif - -#include -#include - - - -// TODO: reference additional headers your program requires here diff --git a/testTemplate/testTemplate/testTemplate.cpp b/testTemplate/testTemplate/testTemplate.cpp deleted file mode 100644 index 7b327c4..0000000 --- a/testTemplate/testTemplate/testTemplate.cpp +++ /dev/null @@ -1,46 +0,0 @@ -// testTemplate.cpp : Defines the entry point for the console application. -// - -#include "stdafx.h" - -class a -{ -public: - - template < void (a::*f)( void ) > - void g() - { - (this->*f)(); - } - - void f1() - { - puts( "a::f1()" ); - } - - void f2() - { - puts( "a::f2()" ); - } - - void g1() - { - g<&a::f1>(); - } - - void g2() - { - g<&a::f2>(); - } -}; - -int _tmain(int argc, _TCHAR* argv[]) -{ - a o; - - o.g1(); - o.g2(); - - return 0; -} - diff --git a/testTemplate/testTemplate/testTemplate.vcproj b/testTemplate/testTemplate/testTemplate.vcproj deleted file mode 100644 index 9f26d1e..0000000 --- a/testTemplate/testTemplate/testTemplate.vcproj +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/test_locale/testLocale.sln b/test_locale/testLocale.sln deleted file mode 100644 index 6096408..0000000 --- a/test_locale/testLocale.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testLocale", "testLocale\testLocale.vcproj", "{4641F4BE-34B9-4C3A-9EC4-2E18C7E1CD12}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4641F4BE-34B9-4C3A-9EC4-2E18C7E1CD12}.Debug|Win32.ActiveCfg = Debug|Win32 - {4641F4BE-34B9-4C3A-9EC4-2E18C7E1CD12}.Debug|Win32.Build.0 = Debug|Win32 - {4641F4BE-34B9-4C3A-9EC4-2E18C7E1CD12}.Release|Win32.ActiveCfg = Release|Win32 - {4641F4BE-34B9-4C3A-9EC4-2E18C7E1CD12}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/test_locale/testLocale/testLocale.vcproj b/test_locale/testLocale/testLocale.vcproj deleted file mode 100644 index 347ef7b..0000000 --- a/test_locale/testLocale/testLocale.vcproj +++ /dev/null @@ -1,197 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -