www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/14/16:57:16

Message-Id: <199608142051.AA05261@sun17.thp.Uni-Koeln.DE>
Date: Wed, 14 Aug 96 22:51:26 0200
Sender: brenig AT thp DOT Uni-Koeln DOT DE
From: Wolfram Brenig <brenig AT thp DOT Uni-Koeln DOT DE>
Organization: Institute of Theoretical Physics, University of Cologne, Germany
Mime-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com
Subject: DJGPP's STL Problem/Bug ?!

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019