Opened 14 years ago
Closed 14 years ago
#2383 closed Bugs (fixed)
[numeric] no matching function for call to operator new [](long unsigned int, udt*&) in libs/numeric/ublas/test/placement_new.cpp
Reported by: | Owned by: | Douglas Gregor | |
---|---|---|---|
Milestone: | Boost 1.37.0 | Component: | numeric |
Version: | Boost Development Trunk | Severity: | Showstopper |
Keywords: | Cc: |
Description
From 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
Note:
See TracTickets
for help on using tickets.
(In [49129]) Fix build of placement new test. From Farid Zaripov, fixes #2383