[Boost-bugs] [Boost C++ Libraries] #2383: [numeric] no matching function for call to operator new [](long unsigned int, udt*&) in libs/numeric/ublas/test/placement_new.cpp

Subject: [Boost-bugs] [Boost C++ Libraries] #2383: [numeric] no matching function for call to operator new [](long unsigned int, udt*&) in libs/numeric/ublas/test/placement_new.cpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-10-03 15:58:54


#2383: [numeric] no matching function for call to operator new [](long unsigned
int, udt*&) in libs/numeric/ublas/test/placement_new.cpp
-----------------------------------------------+----------------------------
 Reporter: Farid Zaripov <faridz_at_[hidden]> | Owner: dgregor
     Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: numeric
  Version: Boost Development Trunk | Severity: Showstopper
 Keywords: |
-----------------------------------------------+----------------------------
 From [http://tinyurl.com/5x6hgd this log]:

 {{{
     "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -m64
 -march=nocona -fPIC -nostdinc++ -DBOOST_ALL_NO_LIB=1
 -DBOOST_UBLAS_NO_EXCEPTIONS -D_RWSTDDEBUG -I".."
 -I"/var/tmp/stdcxx/4.2.x/gcc/11D/include"
 -I"/var/tmp/stdcxx/4.2.x/include" -I"/var/tmp/stdcxx/4.2.x/include/ansi"
 -c -o
 "/var/tmp/boost/results/boost/bin.v2/libs/numeric/ublas/test/placement_new.test/gcc-4.3.0_stdcxx_422/debug
 /address-model-64/architecture-x86/instruction-set-nocona/stdlib-
 stdcxx-4.2.2/placement_new.o"
 "../libs/numeric/ublas/test/placement_new.cpp"

 ../libs/numeric/ublas/test/placement_new.cpp: In function ???int
 main()???:
 ../libs/numeric/ublas/test/placement_new.cpp:38: error: no matching
 function for call to ???operator new [](long unsigned int, udt*&)???
 <built-in>:0: note: candidates are: void* operator new [](long unsigned
 int)
 }}}

   The proposed patch:
 {{{
 Index: libs/numeric/ublas/test/placement_new.cpp
 ===================================================================
 --- libs/numeric/ublas/test/placement_new.cpp (revision 49128)
 +++ libs/numeric/ublas/test/placement_new.cpp (working copy)
 @@ -12,6 +12,7 @@

  #include <boost/numeric/ublas/storage.hpp>
  #include <iostream>
 +#include <new>

  // User defined type to capture base pointer on construction

 }}}

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2383>
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:49:58 UTC