Ticket #2886: array_warnings.patch

File array_warnings.patch, 942 bytes (added by Paul A. Bristow, 14 years ago)

suppress warnings in Boost.array

  • array.hpp

     
    1919 * 20 Jan 2001 - STLport fix (Beman Dawes)
    2020 * 29 Sep 2000 - Initial Revision (Nico Josuttis)
    2121 *
    22  * Jan 29, 2004
     22 * 25 Mar 2009 - Suppressed MS warnings C4510 4610 Paul A. Bristow.
    2323 */
    2424#ifndef BOOST_ARRAY_HPP
    2525#define BOOST_ARRAY_HPP
    2626
     27#ifdef _MSC_VER
     28#  pragma warning(push)
     29#  pragma warning (disable: 4510) // boost::array<T,N>' : default constructor could not be generated
     30#  pragma warning (disable: 4610) // warning C4610: class 'boost::array<T,N>' can never be instantiated - user defined constructor required
     31#endif
     32
    2733#include <cstddef>
    2834#include <stdexcept>
    2935#include <boost/assert.hpp>
     
    316322        x.swap(y);
    317323    }
    318324
     325#if defined (_MSC_VER)
     326# pragma warning(pop)
     327#endif
     328
    319329} /* namespace boost */
    320330
    321331#endif /*BOOST_ARRAY_HPP*/