Subject: [Boost-bugs] [Boost C++ Libraries] #10831: ublas OneElement returns 0.0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-12-01 14:03:24
#10831: ublas OneElement returns 0.0
------------------------------+---------------------
Reporter: r.r.ottenhoff@⦠| Owner: guwi17
Type: Bugs | Status: new
Milestone: To Be Determined | Component: uBLAS
Version: Boost 1.57.0 | Severity: Problem
Keywords: |
------------------------------+---------------------
In ublas::detail::concepts.hpp the function
<template class T>
OneElement(T)
{
return T(0.0);
}
returns 0 for all types. In older versions the function returned 1.f 1.
for floats and doubles etc.
This breaks some client code. In my case the Mkl bindings (Math Kernel
Library of Intel) for ublas.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10831> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC