This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Blitz on cygwin: tests pass but example random.cpp fails


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]