14 messages in com.mysql.lists.plusplusRE: C++ API
FromSent OnAttachments
Rune Solem18 Dec 2000 06:55 
Arturs Aboltins18 Dec 2000 23:14 
Rune Solem19 Dec 2000 00:29 
Sander Pilon19 Dec 2000 06:33 
Sinisa Milivojevic19 Dec 2000 08:30 
Sander Pilon19 Dec 2000 09:40 
Sinisa Milivojevic19 Dec 2000 10:04 
Alex Shi19 Dec 2000 10:33 
Don Thompson19 Dec 2000 11:40 
Alex Shi19 Dec 2000 11:52 
Alex Shi19 Dec 2000 17:18 
Stonix19 Dec 2000 19:47 
Sinisa Milivojevic20 Dec 2000 03:20 
Sinisa Milivojevic20 Dec 2000 03:20 
Subject:RE: C++ API
From:Arturs Aboltins (Artu@lattelekom.lv)
Date:12/18/2000 11:14:52 PM
List:com.mysql.lists.plusplus

Hello Rune !

Appears that iterator.h differs on different Borland C++ versions. What elese you can do : copy this part of definitions into your old iterator.h , somwhere in the beginning after section: ... #ifndef _RWSTD_NO_NAMESPACE namespace std { #endif

//-------------------------------- struct input_iterator_tag {}; struct output_iterator_tag {}; struct forward_iterator_tag : public input_iterator_tag {}; struct bidirectional_iterator_tag : public forward_iterator_tag {}; struct random_access_iterator_tag : public bidirectional_iterator_tag {};

// The base classes input_iterator, output_iterator, forward_iterator, // bidirectional_iterator, and random_access_iterator are not part of // the C++ standard. (They have been replaced by struct iterator.) // They are included for backward compatibility with the HP STL.

template <class _Tp, class _Distance> struct input_iterator { typedef input_iterator_tag iterator_category; typedef _Tp value_type; typedef _Distance difference_type; typedef _Tp* pointer; typedef _Tp& reference; };

struct output_iterator { typedef output_iterator_tag iterator_category; typedef void value_type; typedef void difference_type; typedef void pointer; typedef void reference; };

template <class _Tp, class _Distance> struct forward_iterator { typedef forward_iterator_tag iterator_category; typedef _Tp value_type; typedef _Distance difference_type; typedef _Tp* pointer; typedef _Tp& reference; };

template <class _Tp, class _Distance> struct bidirectional_iterator { typedef bidirectional_iterator_tag iterator_category; typedef _Tp value_type; typedef _Distance difference_type; typedef _Tp* pointer; typedef _Tp& reference; };

template <class _Tp, class _Distance> struct random_access_iterator { typedef random_access_iterator_tag iterator_category; typedef _Tp value_type; typedef _Distance difference_type; typedef _Tp* pointer; typedef _Tp& reference; }; //-------------------------------------------------------

Good luck !

-----Original Message----- From: Rune Solem [mailto:rune@hiq.no] Sent: Monday, December 18, 2000 4:56 PM To: plus@lists.mysql.com Subject: C++ API

Hi.

My name is Rune Solem, and I was hoping that there i someone out there who can help me with a problem.

I have downloaded the API for Borland C++ 5.* and Windows, and I have copied the iterator file to the borland include catalog as described in the readme file following in the zip.

I am using Borland 5.0 C++ compiler and WinNT.

Problem:

When I compile the example simple1 I get errors in the iterator.h file.

Have anyone else encountered this problem, and what can I do.

Best regards