Opened 14 years ago

Closed 13 years ago

#2505 closed Bugs (fixed)

iostreams/test/grep_test.cpp assumes that ptrdiff_t is in the global namespace

Reported by: Niklas Angare <li51ckf02@…> Owned by: Daniel James
Milestone: Boost 1.43.0 Component: iostreams
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

The patch adds std:: in front of ptrdiff_t. An alternative is to declare count as std::string::difference_type. Both solutions work on QNX 6.4.0.

(According to the C++ standard, ptrdiff_t is in the std namespace (and possibly in the global namespace also).)

Attachments (1)

grep_test.cpp.patch (502 bytes ) - added by Niklas Angare <li51ckf02@…> 14 years ago.

Download all attachments as: .zip

Change History (6)

by Niklas Angare <li51ckf02@…>, 14 years ago

Attachment: grep_test.cpp.patch added

comment:1 by Marshall Clow, 14 years ago

Component: Noneiostreams
Owner: set to Jonathan Turkanis

comment:2 by Daniel James, 13 years ago

Owner: changed from Jonathan Turkanis to Daniel James
Status: newassigned

comment:3 by anonymous, 13 years ago

Milestone: Boost 1.38.0Boost 1.43.0

comment:4 by Daniel James, 13 years ago

(In [60582]) ptrdiff_t is in std. Refs #2505.

comment:5 by Daniel James, 13 years ago

Resolution: fixed
Status: assignedclosed

(In [60666]) Merge iostreams.

  • Fix write_device_impl<ostream_tag>. Fixes #3839
  • Fix error checks after calling SetFilePointer. Fixes #3953
  • Gzip filter shouldn't require its source to be peekable. Fixes #3723.
  • In position_to_offset, only cast to stream_offset after calculating _Myoff. Fixes #3969.
  • ptrdiff_t is in std. Fixes #2505.
Note: See TracTickets for help on using tickets.