$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r68606 - in trunk/libs/icl/test: . cmp_clang_ttp_passing2_ cmp_clang_ttp_passing_
From: afojgo_at_[hidden]
Date: 2011-02-01 14:38:51
Author: jofaber
Date: 2011-02-01 14:38:49 EST (Tue, 01 Feb 2011)
New Revision: 68606
URL: http://svn.boost.org/trac/boost/changeset/68606
Log:
Refining test on template template parameter passing for clang.
Added:
   trunk/libs/icl/test/cmp_clang_ttp_passing2_/
   trunk/libs/icl/test/cmp_clang_ttp_passing2_/cmp_clang_ttp_passing2.cpp   (contents, props changed)
   trunk/libs/icl/test/cmp_clang_ttp_passing2_/vc9_cmp_clang_ttp_passing2.vcproj   (contents, props changed)
Text files modified: 
   trunk/libs/icl/test/Jamfile.v2                                       |     1 +                                       
   trunk/libs/icl/test/cmp_clang_ttp_passing_/cmp_clang_ttp_passing.cpp |    27 +++++++++++++--------------             
   trunk/libs/icl/test/vc9_icl_fast_tests.sln                           |     6 ++++++                                  
   3 files changed, 20 insertions(+), 14 deletions(-)
Modified: trunk/libs/icl/test/Jamfile.v2
==============================================================================
--- trunk/libs/icl/test/Jamfile.v2	(original)
+++ trunk/libs/icl/test/Jamfile.v2	2011-02-01 14:38:49 EST (Tue, 01 Feb 2011)
@@ -69,4 +69,5 @@
       # compile-fail-tests  
       [ run cmp_msvc_value_born_error_/cmp_msvc_value_born_error.cpp ]   
       [ run cmp_clang_ttp_passing_/cmp_clang_ttp_passing.cpp ]   
+      [ run cmp_clang_ttp_passing2_/cmp_clang_ttp_passing2.cpp ]   
     ;
Added: trunk/libs/icl/test/cmp_clang_ttp_passing2_/cmp_clang_ttp_passing2.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/icl/test/cmp_clang_ttp_passing2_/cmp_clang_ttp_passing2.cpp	2011-02-01 14:38:49 EST (Tue, 01 Feb 2011)
@@ -0,0 +1,39 @@
+/*-----------------------------------------------------------------------------+    
+Copyright (c) 2011-2011: Joachim Faulhaber
++------------------------------------------------------------------------------+
+   Distributed under the Boost Software License, Version 1.0.
+      (See accompanying file LICENCE.txt or copy at
+           http://www.boost.org/LICENSE_1_0.txt)
++-----------------------------------------------------------------------------*/
+#define BOOST_TEST_MODULE icl::cmp_clang_ttp_passing2 unit test
+#include "../unit_test_unwarned.hpp"
+
+#include <boost/icl/interval_set.hpp>
+
+template 
+<
+	template
+	<
+		class _T,
+		ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(std::less, _T), 
+		ICL_INTERVAL(ICL_COMPARE)  Interval = ICL_INTERVAL_INSTANCE(ICL_INTERVAL_DEFAULT, _T, Compare), 
+		ICL_ALLOC   Alloc   = std::allocator
+	>
+	class IntervalSet,
+	class T
+>
+bool test_ttp()
+{
+    typedef IntervalSet<T> IntervalSetT;
+    IntervalSetT test_set;
+    test_set.clear();
+	return true;
+}
+
+
+BOOST_AUTO_TEST_CASE(dummy)
+{
+	bool result = test_ttp<boost::icl::interval_set, int>();
+    BOOST_CHECK( result );
+}
+
Added: trunk/libs/icl/test/cmp_clang_ttp_passing2_/vc9_cmp_clang_ttp_passing2.vcproj
==============================================================================
--- (empty file)
+++ trunk/libs/icl/test/cmp_clang_ttp_passing2_/vc9_cmp_clang_ttp_passing2.vcproj	2011-02-01 14:38:49 EST (Tue, 01 Feb 2011)
@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="9,00"
+	Name="vc9_cmp_clang_ttp_passing2"
+	ProjectGUID="{EE61B7EF-EC45-4165-8B49-FD5B8D7A9FA3}"
+	RootNamespace="cmp_clang_ttp_passing2"
+	Keyword="Win32Proj"
+	TargetFrameworkVersion="131072"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="../../../../bin/debug/"
+			IntermediateDirectory="../../../../bin/obj/$(ProjectName)/debug/"
+			ConfigurationType="1"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="../../../../; ../../../../boost_1_35_0"
+				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="false"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				OutputFile="../../../../bin/debug/$(ProjectName).exe"
+				LinkIncremental="2"
+				AdditionalLibraryDirectories="../../../../lib; ../../../../stage/lib"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				RandomizedBaseAddress="1"
+				DataExecutionPrevention="0"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="../../../../bin/release/"
+			IntermediateDirectory="../../../../bin/obj/$(ProjectName)/release/"
+			ConfigurationType="1"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				AdditionalIncludeDirectories="../../../../; ../../../../boost_1_35_0"
+				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+				RuntimeLibrary="2"
+				UsePrecompiledHeader="0"
+				WarningLevel="4"
+				Detect64BitPortabilityProblems="false"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				OutputFile="../../../../bin/release/$(ProjectName).exe"
+				LinkIncremental="1"
+				AdditionalLibraryDirectories="../../../../lib; ../../../../stage/lib"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				RandomizedBaseAddress="1"
+				DataExecutionPrevention="0"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath=".\cmp_clang_ttp_passing2.cpp"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+			<File
+				RelativePath="..\test_interval_map_shared.hpp"
+				>
+			</File>
+			<File
+				RelativePath="..\test_type_lists.hpp"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Resource Files"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>
Modified: trunk/libs/icl/test/cmp_clang_ttp_passing_/cmp_clang_ttp_passing.cpp
==============================================================================
--- trunk/libs/icl/test/cmp_clang_ttp_passing_/cmp_clang_ttp_passing.cpp	(original)
+++ trunk/libs/icl/test/cmp_clang_ttp_passing_/cmp_clang_ttp_passing.cpp	2011-02-01 14:38:49 EST (Tue, 01 Feb 2011)
@@ -19,34 +19,33 @@
 template
 <
     class T, 
-    template<class>class less_T = sep::less
+    template<class>class Less = sep::less
 >
 class cont
 {
 public:
-    boost test()const { return true; }
+    bool test()const { return true; }
 };
 
+}//namespace sep
+
 template
 <
-    class T, 
-    template<class T2, 
-             template<class>class less_T2 = sep::less>
-    class Cont
+    template<class _T, 
+             template<class>class _Less = sep::less>
+    class Cont,
+    class T 
 >
-bool func()
+bool test_ttp()
 {
     typedef Cont<T> cont_type; 
-    cont_type x;
-    return x.test();
+    cont_type test_cont;
+    return test_cont.test();
 }
 
-}//namespace sep
-
-
 BOOST_AUTO_TEST_CASE(dummy)
 {
-    bool executed = sep::func<int, sep::cont>();
-    BOOST_CHECK( executed );
+    bool result = test_ttp<sep::cont, int>();
+    BOOST_CHECK( result );
 }
 
Modified: trunk/libs/icl/test/vc9_icl_fast_tests.sln
==============================================================================
--- trunk/libs/icl/test/vc9_icl_fast_tests.sln	(original)
+++ trunk/libs/icl/test/vc9_icl_fast_tests.sln	2011-02-01 14:38:49 EST (Tue, 01 Feb 2011)
@@ -61,6 +61,8 @@
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vc9_cmp_clang_ttp_passing", "cmp_clang_ttp_passing_\vc9_cmp_clang_ttp_passing.vcproj", "{EE61B7EF-EC45-4165-8B49-FD5B8D7A9FA2}"
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vc9_cmp_clang_ttp_passing2", "cmp_clang_ttp_passing2_\vc9_cmp_clang_ttp_passing2.vcproj", "{EE61B7EF-EC45-4165-8B49-FD5B8D7A9FA3}"
+EndProject
 Global
         GlobalSection(SolutionConfigurationPlatforms) = preSolution
                 Debug|Win32 = Debug|Win32
@@ -187,6 +189,10 @@
                 {EE61B7EF-EC45-4165-8B49-FD5B8D7A9FA2}.Debug|Win32.Build.0 = Debug|Win32
                 {EE61B7EF-EC45-4165-8B49-FD5B8D7A9FA2}.Release|Win32.ActiveCfg = Release|Win32
                 {EE61B7EF-EC45-4165-8B49-FD5B8D7A9FA2}.Release|Win32.Build.0 = Release|Win32
+		{EE61B7EF-EC45-4165-8B49-FD5B8D7A9FA3}.Debug|Win32.ActiveCfg = Debug|Win32
+		{EE61B7EF-EC45-4165-8B49-FD5B8D7A9FA3}.Debug|Win32.Build.0 = Debug|Win32
+		{EE61B7EF-EC45-4165-8B49-FD5B8D7A9FA3}.Release|Win32.ActiveCfg = Release|Win32
+		{EE61B7EF-EC45-4165-8B49-FD5B8D7A9FA3}.Release|Win32.Build.0 = Release|Win32
         EndGlobalSection
         GlobalSection(SolutionProperties) = preSolution
                 HideSolutionNode = FALSE