|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52021 - in sandbox/mirror: boost/mirror boost/mirror/detail libs/mirror/build/msvc/mirror_examples libs/mirror/build/msvc/mirror_examples/gen_01 libs/mirror/build/msvc/mirror_examples/gen_02 libs/mirror/example/generators
From: chochlik_at_[hidden]
Date: 2009-03-27 13:19:41
Author: matus.chochlik
Date: 2009-03-27 13:19:40 EDT (Fri, 27 Mar 2009)
New Revision: 52021
URL: http://svn.boost.org/trac/boost/changeset/52021
Log:
[mirror 0.3.x]
- minor fix of the class generator implementation
- added two new projects to the msvc build solution
Added:
sandbox/mirror/libs/mirror/build/msvc/mirror_examples/gen_01/ (props changed)
sandbox/mirror/libs/mirror/build/msvc/mirror_examples/gen_01/gen_01.vcproj (contents, props changed)
sandbox/mirror/libs/mirror/build/msvc/mirror_examples/gen_02/ (props changed)
sandbox/mirror/libs/mirror/build/msvc/mirror_examples/gen_02/gen_02.vcproj (contents, props changed)
Text files modified:
sandbox/mirror/boost/mirror/class_generators.hpp | 9 +++------
sandbox/mirror/boost/mirror/detail/class_generators.hpp | 20 +++-----------------
sandbox/mirror/libs/mirror/build/msvc/mirror_examples/mirror_examples.sln | 12 ++++++++++++
sandbox/mirror/libs/mirror/example/generators/gen_02.cpp | 6 +++---
4 files changed, 21 insertions(+), 26 deletions(-)
Modified: sandbox/mirror/boost/mirror/class_generators.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/class_generators.hpp (original)
+++ sandbox/mirror/boost/mirror/class_generators.hpp 2009-03-27 13:19:40 EDT (Fri, 27 Mar 2009)
@@ -70,17 +70,14 @@
: base_class(static_cast<const base_class&>(other))
{ }
+ /*
inline class_generator(class_generator& other)
: base_class(static_cast<const base_class&>(other))
{ }
+ */
template <class Param>
- inline class_generator(Param& param)
- : base_class(param)
- { }
-
- template <class Param>
- inline class_generator(const Param& param)
+ inline class_generator(Param param)
: base_class(param)
{ }
};
Modified: sandbox/mirror/boost/mirror/detail/class_generators.hpp
==============================================================================
--- sandbox/mirror/boost/mirror/detail/class_generators.hpp (original)
+++ sandbox/mirror/boost/mirror/detail/class_generators.hpp 2009-03-27 13:19:40 EDT (Fri, 27 Mar 2009)
@@ -82,13 +82,7 @@
{ }
template <class Param>
- inline class_generator_base(Param& init)
- : head(init)
- , tail(init)
- { }
-
- template <class Param>
- inline class_generator_base(const Param& init)
+ inline class_generator_base(Param init)
: head(init)
, tail(init)
{ }
@@ -111,10 +105,7 @@
inline class_generator_base(void){ }
template <class Param>
- inline class_generator_base(Param&){ }
-
- template <class Param>
- inline class_generator_base(const Param&){ }
+ inline class_generator_base(Param){ }
};
/** Creates a class hierarchy based on the results
@@ -151,12 +142,7 @@
{ }
template <class Param>
- inline class_generator(Param& init)
- : base_generator(init)
- { }
-
- template <class Param>
- inline class_generator(const Param& init)
+ inline class_generator(Param init)
: base_generator(init)
{ }
};
Added: sandbox/mirror/libs/mirror/build/msvc/mirror_examples/gen_01/gen_01.vcproj
==============================================================================
--- (empty file)
+++ sandbox/mirror/libs/mirror/build/msvc/mirror_examples/gen_01/gen_01.vcproj 2009-03-27 13:19:40 EDT (Fri, 27 Mar 2009)
@@ -0,0 +1,191 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9,00"
+ Name="gen_01"
+ ProjectGUID="{20E2BACF-3514-4349-B5EB-47757C7A5E09}"
+ RootNamespace="gen_01"
+ Keyword="Win32Proj"
+ TargetFrameworkVersion="196613"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ InheritedPropertySheets="..\..\..\..\..\..\..\msvc-build.vsprops;..\mirror_examples.vsprops;"
+ ConfigurationType="1"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="4"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="2"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ 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"
+ InheritedPropertySheets="..\..\..\..\..\..\..\msvc-build.vsprops;..\mirror_examples.vsprops;"
+ ConfigurationType="1"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ EnableIntrinsicFunctions="true"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ RuntimeLibrary="2"
+ EnableFunctionLevelLinking="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="1"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ 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="..\..\..\..\example\generators\gen_01.cpp"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ </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>
Added: sandbox/mirror/libs/mirror/build/msvc/mirror_examples/gen_02/gen_02.vcproj
==============================================================================
--- (empty file)
+++ sandbox/mirror/libs/mirror/build/msvc/mirror_examples/gen_02/gen_02.vcproj 2009-03-27 13:19:40 EDT (Fri, 27 Mar 2009)
@@ -0,0 +1,191 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9,00"
+ Name="gen_02"
+ ProjectGUID="{5C20858F-2412-45C8-B1A9-9766D0BBB45F}"
+ RootNamespace="gen_02"
+ Keyword="Win32Proj"
+ TargetFrameworkVersion="196613"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ InheritedPropertySheets="..\..\..\..\..\..\..\msvc-build.vsprops;..\mirror_examples.vsprops;"
+ ConfigurationType="1"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="4"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="2"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ 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"
+ InheritedPropertySheets="..\..\..\..\..\..\..\msvc-build.vsprops;..\mirror_examples.vsprops;"
+ ConfigurationType="1"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ EnableIntrinsicFunctions="true"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ RuntimeLibrary="2"
+ EnableFunctionLevelLinking="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="1"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ 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="..\..\..\..\example\generators\gen_02.cpp"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ </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: sandbox/mirror/libs/mirror/build/msvc/mirror_examples/mirror_examples.sln
==============================================================================
--- sandbox/mirror/libs/mirror/build/msvc/mirror_examples/mirror_examples.sln (original)
+++ sandbox/mirror/libs/mirror/build/msvc/mirror_examples/mirror_examples.sln 2009-03-27 13:19:40 EDT (Fri, 27 Mar 2009)
@@ -42,6 +42,10 @@
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "hello_world_2", "hello_world_2\hello_world_2.vcproj", "{778604C1-04DF-476C-8AC0-484A61516FE9}"
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gen_01", "gen_01\gen_01.vcproj", "{20E2BACF-3514-4349-B5EB-47757C7A5E09}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gen_02", "gen_02\gen_02.vcproj", "{5C20858F-2412-45C8-B1A9-9766D0BBB45F}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@@ -120,6 +124,14 @@
{778604C1-04DF-476C-8AC0-484A61516FE9}.Debug|Win32.Build.0 = Debug|Win32
{778604C1-04DF-476C-8AC0-484A61516FE9}.Release|Win32.ActiveCfg = Release|Win32
{778604C1-04DF-476C-8AC0-484A61516FE9}.Release|Win32.Build.0 = Release|Win32
+ {20E2BACF-3514-4349-B5EB-47757C7A5E09}.Debug|Win32.ActiveCfg = Debug|Win32
+ {20E2BACF-3514-4349-B5EB-47757C7A5E09}.Debug|Win32.Build.0 = Debug|Win32
+ {20E2BACF-3514-4349-B5EB-47757C7A5E09}.Release|Win32.ActiveCfg = Release|Win32
+ {20E2BACF-3514-4349-B5EB-47757C7A5E09}.Release|Win32.Build.0 = Release|Win32
+ {5C20858F-2412-45C8-B1A9-9766D0BBB45F}.Debug|Win32.ActiveCfg = Debug|Win32
+ {5C20858F-2412-45C8-B1A9-9766D0BBB45F}.Debug|Win32.Build.0 = Debug|Win32
+ {5C20858F-2412-45C8-B1A9-9766D0BBB45F}.Release|Win32.ActiveCfg = Release|Win32
+ {5C20858F-2412-45C8-B1A9-9766D0BBB45F}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Modified: sandbox/mirror/libs/mirror/example/generators/gen_02.cpp
==============================================================================
--- sandbox/mirror/libs/mirror/example/generators/gen_02.cpp (original)
+++ sandbox/mirror/libs/mirror/example/generators/gen_02.cpp 2009-03-27 13:19:40 EDT (Fri, 27 Mar 2009)
@@ -152,12 +152,12 @@
typename MetaAttribute::type::all_attributes,
get_building_block,
::boost::mpl::false_
- > base_generator;
+ > helper_class_generator;
/** This is the building block type for attributes
* with non-fundamental types
*/
- struct type : public base_generator
+ struct type : public helper_class_generator
{
static inline const string& separator(void)
{
@@ -170,7 +170,7 @@
* to the base generator
*/
type(const string& path)
- : base_generator(
+ : helper_class_generator(
path +
separator() +
MetaAttribute::base_name()
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk