Opened 9 years ago

Closed 8 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:


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@…> 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by Niklas Angare <li51ckf02@…>

Attachment: grep_test.cpp.patch added

comment:1 Changed 9 years ago by Marshall Clow

Component: Noneiostreams
Owner: set to Jonathan Turkanis

comment:2 Changed 8 years ago by Daniel James

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

comment:3 Changed 8 years ago by anonymous

Milestone: Boost 1.38.0Boost 1.43.0

comment:4 Changed 8 years ago by Daniel James

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

comment:5 Changed 8 years ago by Daniel James

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.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Daniel James.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.