Opened 9 years ago

Closed 7 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: danieljames
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@…>

comment:1 Changed 9 years ago by marshall

  • Component changed from None to iostreams
  • Owner set to turkanis

comment:2 Changed 7 years ago by danieljames

  • Owner changed from turkanis to danieljames
  • Status changed from new to assigned

comment:3 Changed 7 years ago by anonymous

  • Milestone changed from Boost 1.38.0 to Boost 1.43.0

comment:4 Changed 7 years ago by danieljames

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

comment:5 Changed 7 years ago by danieljames

  • Resolution set to fixed
  • Status changed from assigned to closed

(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.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain danieljames.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.