www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/14/21:30:42

Xref: news2.mv.net comp.os.msdos.djgpp:7279
From: Wolfram Brenig <brenig>
Newsgroups: comp.os.msdos.djgpp
Subject: DJGPP's STL Problem/Bug ?!
Date: 14 Aug 1996 20:51:22 GMT
Organization: Institute of Theoretical Physics, University of Cologne, Germany
Lines: 53
Message-ID: <4ute8a$90f@news.rrz.uni-koeln.de>
NNTP-Posting-Host: sun17.thp.uni-koeln.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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