Mail Archives: djgpp/1996/08/14/16:57:16
HELP !!!!!,
can anybody provide help on this problem I have with DJGPP's STL
implementation -- or is anybody at least willing to confirm the
following compilation error:
STL contains a class deque<T> and STL provides for a number of
algortihms which *should* act properly on deque<T>. However, most
of these algortihms, like:
rotate(..)
unique(..)
reverse(..)
random_shuffle(..)
...and I dont no how many else of them will not compile within DJGPP.
At least not for me. The error always consits of one, or both of the
following:
*****************************************
c:/djgpp/lang/cxx/algo.h:520: type unification failed for function
template `template <class T, class Distance> Distance * distance_type
(input_iterator<...> &)'
c:/djgpp/lang/cxx/algo.h:521: type unification failed for function
template `template <class T, class Distance> struct input_iterator_tag
iterator_category(input_iterator<...> &)'
*****************************************
A simple example program to check this is:
#include <algo.h>
#include <deque.h>
int main() {
deque<int> v;
v.push_back(1);
v.push_back(2);
v.push_back(3);
reverse(v.begin(),v.end());
return EXIT_SUCCESS;
}
Any help is most appreciated !!!!
- Raw text -