Re: [Boost-bugs] [Boost C++ Libraries] #6182: lexical_cast: invalid application of 'sizeof' to incomplete type 'removed_ptr_t'

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6182: lexical_cast: invalid application of 'sizeof' to incomplete type 'removed_ptr_t'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-04 16:02:18


#6182: lexical_cast: invalid application of 'sizeof' to incomplete type
'removed_ptr_t'
----------------------------------+-----------------------------------------
  Reporter: pmachata@… | Owner: nasonov
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: lexical_cast
   Version: Boost 1.48.0 | Severity: Regression
Resolution: | Keywords:
----------------------------------+-----------------------------------------

Comment (by apolukhin):

 Replying to [comment:1 anonymous]:
> About the proposed fix. To decide whether source type is char, you
 first ask whether it's char or wchar, and then compare sizeofs. I think
 the same can be achieved by simply asking whether src is char. I might be
 missing something though. That's what the patch implements.

 The problem here, is that we have char, unsigned char, signed char,
 wchar_t, char16_t and char32_t types (not only char). And we still need to
 construct stringbuffer for char types with different sizes.[[BR]]
 [[BR]]
 Great thanks for bug report and for giving ideas for it fixing.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6182#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC