This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Blitz on cygwin: tests pass but example random.cpp fails
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Cc: <libstdc++ at gcc dot gnu dot org>
- Date: 27 Apr 2002 23:05:29 +0200
- Subject: Re: Blitz on cygwin: tests pass but example random.cpp fails
- Organization: CodeSourcery, LLC
- References: <FAC87D7C874EAB46A847604DA4FD5A6402F7BE@crtsmail.corp.riotinto.org>
"Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com> writes:
| Finally managed to build and test blitz with 3.1 on cygwin.
|
| All the tests pass, which is great.
|
| One example, random.cpp, fails. The compiler output is below.
| I will provide further details if required. I may even be able
| to produce a smaller test case, but not tonight.
|
| g++ -ftemplate-depth-30 -g -DBZ_DEBUG -I./.. -c ./random.cpp
| In file included from ../random/default.h:4,
| from ../random/uniform.h:4,
| from random.cpp:5:
| ../random/mt.h: In member function `void
| ranlib::MersenneTwister::initialize()':
| ../random/mt.h:98: no match for `__gnu_cxx::__normal_iterator<unsigned int*,
| std::vector<unsigned int, std::allocator<unsigned int> > >& = unsigned int*'
[ I was kept away from mails for some time, apologies if this is no
longer an issue ]
It seems, Blitz is thinking that a std::vectot<T>::iterator is the
synonymous to/convertible from 'T*' which definitely is not a
valid assumption.
-- Gaby