Commit 50dc551c authored by Luc Hermitte's avatar Luc Hermitte

WARN: OTB-134/OGR: warning on windows

parent 9675a141
......@@ -504,15 +504,13 @@ public:
return m_DataSource ? &boolean::i : 0;
}
/*otb::ogr::*
* Flushes all changes to disk.
/** Flushes all changes to disk.
* \throw itd::ExceptionObject in case the flush operation failed.
* \sa OGRDataSource::SyncToDisk
*/
void SyncToDisk();
/**
* Returns whether a capability is avalaible.
/** Returns whether a capability is avalaible.
* \param[in] capabilityName name of the capability to check.
* \throw None
* \sa OGRDataSource::TestCapability
......@@ -578,6 +576,8 @@ private:
} } // end namespace otb::ogr
#if 0
// Either this, or inheriting from noncopyable is required for DataSource to be
// compatible with BOOST_FOREACH
namespace boost { namespace foreach {
template<typename T> struct is_noncopyable; // forward declaration
template <>
......
......@@ -234,7 +234,7 @@ public:
assert(m_Definition.GetType() == Kind::value);
typedef typename boost::mpl::at<metaprog::FieldGetters_Map, Kind>::type GetterType;
BOOST_STATIC_ASSERT(!(boost::is_same<GetterType, boost::mpl::void_>::value));
assert(m_index >= 0 && m_index < m_Feature->GetFieldCount());
assert(m_index >= 0 && int(m_index) < m_Feature->GetFieldCount());
return GetterType::call(*m_Feature, m_index);
}
......
......@@ -22,6 +22,10 @@
#include "otbOGRGeometryWrapper.h"
#include "ogr_geometry.h"
#ifdef _MSC_VER
// warning convertion int -> bool
#pragma warning ( disable : 4800 )
#endif
/*===========================================================================*/
/*================================[ Deleter ]================================*/
/*===========================================================================*/
......
......@@ -33,6 +33,10 @@ namespace otb {
#include "otbOGRDriversInit.h"
#include "otbOGRDataSourceWrapper.h"
// #include "otbOGRLayerWrapper.h" // implicit
// #include "otbOGRFeatureWrapper.h" // implicit
// #include "otbOGRFieldWrapper.h" // implicit
// #include "otbOGRGeometryWrapper.h" // implicit
/**\ingroup Geometry
* \file otbOGR.h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment