Cleaned up the read template overloads (per litb's update); it seems the old version didn't compile in VS2008. Also updated the VS project files.

This commit is contained in:
Jesse Beder
2009-09-08 20:57:18 +00:00
parent fa885d1813
commit 7c4cc9bf5f
3 changed files with 22 additions and 2 deletions

View File

@@ -38,12 +38,12 @@ namespace YAML
struct flag { char c[2]; }; struct flag { char c[2]; };
flag Convert(...); flag Convert(...);
char (& operator,(flag, flag) )[1]; int operator,(flag, flag);
template<typename T> template<typename T>
void operator,(flag, T const&); void operator,(flag, T const&);
char (& operator,(char(&)[1], flag) )[1]; char operator,(int, flag);
} }
template <typename T> template <typename T>

View File

@@ -179,6 +179,10 @@
RelativePath=".\yaml-reader\parsertests.cpp" RelativePath=".\yaml-reader\parsertests.cpp"
> >
</File> </File>
<File
RelativePath=".\yaml-reader\spectests.cpp"
>
</File>
<File <File
RelativePath=".\yaml-reader\tests.cpp" RelativePath=".\yaml-reader\tests.cpp"
> >
@@ -189,6 +193,18 @@
Filter="h;hpp;hxx;hm;inl;inc;xsd" Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
> >
<File
RelativePath=".\yaml-reader\emittertests.h"
>
</File>
<File
RelativePath=".\yaml-reader\parsertests.h"
>
</File>
<File
RelativePath=".\yaml-reader\spectests.h"
>
</File>
<File <File
RelativePath=".\yaml-reader\tests.h" RelativePath=".\yaml-reader\tests.h"
> >

View File

@@ -191,6 +191,10 @@
RelativePath=".\src\node.cpp" RelativePath=".\src\node.cpp"
> >
</File> </File>
<File
RelativePath=".\src\null.cpp"
>
</File>
<File <File
RelativePath=".\src\scalar.cpp" RelativePath=".\src\scalar.cpp"
> >