VC++ 2008 warnings cleanups
This commit is contained in:
@@ -127,7 +127,7 @@ namespace chaiscript
|
|||||||
* http://www.sgi.com/tech/stl/RandomAccessContainer.html
|
* http://www.sgi.com/tech/stl/RandomAccessContainer.html
|
||||||
*/
|
*/
|
||||||
template<typename ContainerType>
|
template<typename ContainerType>
|
||||||
ModulePtr random_access_container_type(const std::string &type, ModulePtr m = ModulePtr(new Module()))
|
ModulePtr random_access_container_type(const std::string &/*type*/, ModulePtr m = ModulePtr(new Module()))
|
||||||
{
|
{
|
||||||
typedef typename ContainerType::reference(ContainerType::*indexoper)(size_t);
|
typedef typename ContainerType::reference(ContainerType::*indexoper)(size_t);
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ namespace chaiscript
|
|||||||
* http://www.sgi.com/tech/stl/Container.html
|
* http://www.sgi.com/tech/stl/Container.html
|
||||||
*/
|
*/
|
||||||
template<typename ContainerType>
|
template<typename ContainerType>
|
||||||
ModulePtr container_type(const std::string &type, ModulePtr m = ModulePtr(new Module()))
|
ModulePtr container_type(const std::string &/*type*/, ModulePtr m = ModulePtr(new Module()))
|
||||||
{
|
{
|
||||||
m->add(fun<size_t (ContainerType::*)() const>(&ContainerType::size), "size");
|
m->add(fun<size_t (ContainerType::*)() const>(&ContainerType::size), "size");
|
||||||
m->add(fun<bool (ContainerType::*)() const>(&ContainerType::empty), "empty");
|
m->add(fun<bool (ContainerType::*)() const>(&ContainerType::empty), "empty");
|
||||||
@@ -217,7 +217,7 @@ namespace chaiscript
|
|||||||
* http://www.sgi.com/tech/stl/Sequence.html
|
* http://www.sgi.com/tech/stl/Sequence.html
|
||||||
*/
|
*/
|
||||||
template<typename ContainerType>
|
template<typename ContainerType>
|
||||||
ModulePtr sequence_type(const std::string &type, ModulePtr m = ModulePtr(new Module()))
|
ModulePtr sequence_type(const std::string &/*type*/, ModulePtr m = ModulePtr(new Module()))
|
||||||
{
|
{
|
||||||
std::string insert_name;
|
std::string insert_name;
|
||||||
if (typeid(typename ContainerType::value_type) == typeid(Boxed_Value))
|
if (typeid(typename ContainerType::value_type) == typeid(Boxed_Value))
|
||||||
@@ -238,7 +238,7 @@ namespace chaiscript
|
|||||||
* http://www.sgi.com/tech/stl/BackInsertionSequence.html
|
* http://www.sgi.com/tech/stl/BackInsertionSequence.html
|
||||||
*/
|
*/
|
||||||
template<typename ContainerType>
|
template<typename ContainerType>
|
||||||
ModulePtr back_insertion_sequence_type(const std::string &type, ModulePtr m = ModulePtr(new Module()))
|
ModulePtr back_insertion_sequence_type(const std::string &/*type*/, ModulePtr m = ModulePtr(new Module()))
|
||||||
{
|
{
|
||||||
typedef typename ContainerType::reference (ContainerType::*backptr)();
|
typedef typename ContainerType::reference (ContainerType::*backptr)();
|
||||||
|
|
||||||
@@ -317,7 +317,7 @@ namespace chaiscript
|
|||||||
* http://www.sgi.com/tech/stl/UniqueAssociativeContainer.html
|
* http://www.sgi.com/tech/stl/UniqueAssociativeContainer.html
|
||||||
*/
|
*/
|
||||||
template<typename ContainerType>
|
template<typename ContainerType>
|
||||||
ModulePtr unique_associative_container_type(const std::string &type, ModulePtr m = ModulePtr(new Module()))
|
ModulePtr unique_associative_container_type(const std::string &/*type*/, ModulePtr m = ModulePtr(new Module()))
|
||||||
{
|
{
|
||||||
m->add(fun<size_t (ContainerType::*)(const typename ContainerType::key_type &) const>(&ContainerType::count), "count");
|
m->add(fun<size_t (ContainerType::*)(const typename ContainerType::key_type &) const>(&ContainerType::count), "count");
|
||||||
|
|
||||||
|
@@ -785,7 +785,7 @@ namespace chaiscript
|
|||||||
return Boxed_Value(i % r.i);
|
return Boxed_Value(i % r.i);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw bad_boxed_cast("\% only valid for integer types");
|
throw bad_boxed_cast("% only valid for integer types");
|
||||||
}
|
}
|
||||||
|
|
||||||
Boxed_Value operator>>(const Boxed_POD_Value &r) const
|
Boxed_Value operator>>(const Boxed_POD_Value &r) const
|
||||||
|
@@ -14,6 +14,6 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalLibraryDirectories="C:\Boost\lib"
|
AdditionalLibraryDirectories="C:\Boost\lib;C:\Programming\Boost\lib"
|
||||||
/>
|
/>
|
||||||
</VisualStudioPropertySheet>
|
</VisualStudioPropertySheet>
|
||||||
|
@@ -189,6 +189,10 @@
|
|||||||
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="..\..\include\chaiscript\dispatchkit\bind_first.hpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\include\chaiscript\dispatchkit\bootstrap.hpp"
|
RelativePath="..\..\include\chaiscript\dispatchkit\bootstrap.hpp"
|
||||||
>
|
>
|
||||||
@@ -245,6 +249,10 @@
|
|||||||
RelativePath="..\..\include\chaiscript\dispatchkit\handle_return.hpp"
|
RelativePath="..\..\include\chaiscript\dispatchkit\handle_return.hpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\include\chaiscript\dispatchkit\operators.hpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\include\chaiscript\dispatchkit\proxy_constructors.hpp"
|
RelativePath="..\..\include\chaiscript\dispatchkit\proxy_constructors.hpp"
|
||||||
>
|
>
|
||||||
|
Reference in New Issue
Block a user