Opened 16 years ago

Closed 16 years ago

#724 closed Patches (Accepted)

[shared_ptr] support for STLport 5's no-iostreams mode

Reported by: vividos Owned by: Peter Dimov
Milestone: Component: smart_ptr
Version: None Severity:
Keywords: Cc:

Description

In STLport there is a mode called no-iostreams mode.
When the define _STLP_NO_IOSTREAMS is used, nothing of
the iostreams-part of the Standard C++ Library can be
used, and including the headers fails with an error.
The advantage of this mode is that the user doesn't
have to link against a built library, all STLport code
is inline.

Unfortunately the shared_ptr cannot be used in this
mode, since an operator<< is defined in shared_ptr.hpp.
This patch ifdef's out this operator when
_STLP_NO_IOSTREAMS symbol is defined (and it does the
same with intrusive_ptr.hpp). The patch is against the
1.34 branch of CVS.

Change History (2)

comment:1 by Peter Dimov, 16 years ago

Logged In: YES 
user_id=305912

Applied to 1.34 and HEAD.

comment:2 by sf-robot, 16 years ago

Status: assignedclosed
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Note: See TracTickets for help on using tickets.