|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67593 - sandbox/gil/boost/gil/extension/io2
From: dsaritz_at_[hidden]
Date: 2011-01-02 15:45:40
Author: psiha
Date: 2011-01-02 15:45:39 EST (Sun, 02 Jan 2011)
New Revision: 67593
URL: http://svn.boost.org/trac/boost/changeset/67593
Log:
Improved reader_for diagnostics.
Minor stylistic change.
Text files modified:
sandbox/gil/boost/gil/extension/io2/formatted_image.hpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Modified: sandbox/gil/boost/gil/extension/io2/formatted_image.hpp
==============================================================================
--- sandbox/gil/boost/gil/extension/io2/formatted_image.hpp (original)
+++ sandbox/gil/boost/gil/extension/io2/formatted_image.hpp 2011-01-02 15:45:39 EST (Sun, 02 Jan 2011)
@@ -521,7 +521,11 @@
template <typename Source>
struct reader_for
- : public mpl::at<typename formatted_image_traits<Impl>::readers, Source> {};
+ : public mpl::at<typename formatted_image_traits<Impl>::readers, Source>
+ {
+ // The backend does not seem to provide a reader for the specified target...
+ BOOST_STATIC_ASSERT(( !is_same<typename reader_for<Source>::type, mpl::void_>::value ));
+ };
template <typename Target>
struct writer_for
@@ -581,7 +585,7 @@
:
base ( image ),
impl_( impl )
- {}
+ {}
template <class Image>
void apply() { impl_.copy_to( base::apply<Image>(), dimensions_policy(), formats_policy() ); }
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