Boost logo

Boost-Commit :

From: lord.zerom1nd_at_[hidden]
Date: 2008-08-29 09:07:09


Author: kieliszczyk
Date: 2008-08-29 09:07:09 EDT (Fri, 29 Aug 2008)
New Revision: 48446
URL: http://svn.boost.org/trac/boost/changeset/48446

Log:
poly
Text files modified:
   sandbox/SOC/2008/polynomial/boost/polynomial.hpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: sandbox/SOC/2008/polynomial/boost/polynomial.hpp
==============================================================================
--- sandbox/SOC/2008/polynomial/boost/polynomial.hpp (original)
+++ sandbox/SOC/2008/polynomial/boost/polynomial.hpp 2008-08-29 09:07:09 EDT (Fri, 29 Aug 2008)
@@ -279,7 +279,7 @@
   template<typename FieldType>
   template<typename U>
   polynomial<FieldType>& polynomial<FieldType>::operator=(const polynomial<U>& poly) {
- if(reinterpret_cast<void const*>(this) != reinterpret_cast<void const*>(&poly)) {
+ if(static_cast<void const*>(this) != static_cast<void const*>(&poly)) {
       std::vector<FieldType> tmp(poly.size());
       typename std::vector<FieldType>::iterator tmp_it = tmp.begin();
       typename std::vector<U>::const_iterator poly_it = poly.begin();
@@ -335,7 +335,7 @@
   template<typename FieldType>
   template<typename U>
   polynomial<FieldType>& polynomial<FieldType>::operator-=(const polynomial<U>& poly) {
- if(reinterpret_cast<void const*>(this) != reinterpret_cast<void const*>(&poly)) {
+ if(static_cast<void const*>(this) != static_cast<void const*>(&poly)) {
       std::vector<FieldType> tmp(std::max(size(), poly.size()));
       boost::math::tools::detail::polynomial_sub_in_place(begin(), end(), poly.begin(), poly.end(), tmp.begin());
       std::swap(coefficients, tmp);
@@ -401,7 +401,7 @@
   template<typename FieldType>
   template<typename U>
   polynomial<FieldType>& polynomial<FieldType>::operator/=(const polynomial<U>& poly) {
- if(reinterpret_cast<void const*>(this) != reinterpret_cast<void const*>(&poly)) {
+ if(static_cast<void const*>(this) != static_cast<void const*>(&poly)) {
       std::vector<FieldType> tmp(coefficients);
       if(size() < poly.size()) {
         tmp.clear();
@@ -447,7 +447,7 @@
   template<typename FieldType>
   template<typename U>
   polynomial<FieldType>& polynomial<FieldType>::operator%=(const polynomial<U>& poly) {
- if(reinterpret_cast<void const*>(this) != reinterpret_cast<void const*>(&poly)) {
+ if(static_cast<void const*>(this) != static_cast<void const*>(&poly)) {
       if(size() < poly.size()) {
         return *this;
       }


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