Ticket #2505 (closed Bugs: fixed)

Opened 8 years ago

Last modified 7 years ago

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


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

Change History

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

comment:1 Changed 8 years ago by marshall

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

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

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

(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 a comment

Modify Ticket

Change Properties
<Author field>
as closed
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.