Re: [Boost-bugs] [Boost C++ Libraries] #5127: Incorrect result_of usage in transform_iterator

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5127: Incorrect result_of usage in transform_iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-23 02:29:31


#5127: Incorrect result_of usage in transform_iterator
--------------------------------------+-------------------------------------
  Reporter: mimomorin@… | Owner: dave
      Type: Patches | Status: closed
 Milestone: Boost 1.47.0 | Component: iterator
   Version: Boost Development Trunk | Severity: Problem
Resolution: fixed | Keywords: transform_iterator
--------------------------------------+-------------------------------------

Comment (by anonymous):

 Replying to [comment:9 michel]:
> Replying to [comment:7 TLBettens@…]:
> > This change went into release 1-50_0 and now causes a warning message
 to be emitted in Visual C++ version 10, perhaps others versions as well.
> >
> > Compiler warning message:
> >
> > {{{
> >
 c:\boostbuilding\boost_1_50_0\boost\iterator\transform_iterator.hpp(49):
> > warning C4180: qualifier applied to function type has no meaning;
 ignored
> > }}}
>
> Thanks for the report.
>
> Hmm, it's strange...
> IIUC, `UnaryFunc` cannot be a function type.
> Could you post a (minimal) reproducible code for this problem?

 Thanks Michel for looking into it. I was able to reproduce the warning
 message with this code in main.cpp:

 {{{
 #include <boost/algorithm/string.hpp>

 int main()
 {
   return 0;
 }
 }}}



 Although not too exciting but perhaps helpful, the build log
 (CPPRocksProject.log) capturing the compile switches and warning message
 looks like:

 {{{
 Build started 8/22/2012 7:04:55 PM.
      1>Project "D:\SAGR RIC v3\SAGR Development\MSVC++ Solution Space
 (2010)\CPPRocksProject\CPPRocksProject.vcxproj" on node 2 (build
 target(s)).
      1>InitializeBuildStatus:
          Creating "Win32\Debug\SAGR.unsuccessfulbuild" because
 "AlwaysCreate" was specified.
        MakeDirsForCl:
          Creating directory "D:\SAGR RIC v3\SAGR Development\MSVC++
 Solution Space
 (2010)\CPPRocksProject\Win32\Debug\dumy\dumy\..\..\SourceCode".
        ClCompile:
          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe
 /c /I"D:\SAGR RIC v3\SAGR Development\MSVC++ Solution Space
 (2010)\..\SourceCode\\" /IC:\BoostBuilding\boost_1_50_0\ /ZI /nologo /W4
 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _MBCS /Gm /EHsc /RTCc
 /RTC1 /MTd /GS /Gy /fp:precise /fp:except /Za /Zc:wchar_t /Zc:forScope /GR
 /Fo"Win32\Debug\dumy\dumy\..\..\SourceCode\\" /Fd"Win32\Debug\vc100.pdb"
 /FR"Win32\Debug\dumy\dumy\..\..\SourceCode\\" /Gd /TP /wd4290 /wd4224
 /analyze- /errorReport:prompt ..\..\SourceCode\main.cpp
          main.cpp
 1>c:\boostbuilding\boost_1_50_0\boost\iterator\transform_iterator.hpp(49):
 warning C4180: qualifier applied to function type has no meaning; ignored
 c:\boostbuilding\boost_1_50_0\boost\iterator\transform_iterator.hpp(70) :
 see reference to class template instantiation
 'boost::detail::transform_iterator_base<UnaryFunc,Iterator,Reference,Value>'
 being compiled
        ManifestResourceCompile:
          c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe
 /nologo /fo"Win32\Debug\SAGR-x86-Debug.exe.embed.manifest.res"
 Win32\Debug\SAGR-x86-Debug_manifest.rc
        Link:
          C:\Program Files (x86)\Microsoft Visual Studio
 10.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"D:\SAGR RIC v3\SAGR
 Development\MSVC++ Solution Space
 (2010)\CPPRocksProject\Win32\Debug\SAGR-x86-Debug.exe" /INCREMENTAL
 /NOLOGO /LIBPATH:C:\BoostBuilding\boost_1_50_0\lib32\ kernel32.lib
 user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
 ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST
 /ManifestFile:"Win32\Debug\SAGR-x86-Debug.exe.intermediate.manifest"
 /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"D:\SAGR RIC
 v3\SAGR Development\MSVC++ Solution Space
 (2010)\CPPRocksProject\Win32\Debug\SAGR-x86-Debug.pdb" /SUBSYSTEM:CONSOLE
 /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:\SAGR RIC v3\SAGR
 Development\MSVC++ Solution Space
 (2010)\CPPRocksProject\Win32\Debug\SAGR-x86-Debug.lib" /MACHINE:X86
 "Win32\Debug\SAGR-x86-Debug.exe.embed.manifest.res"
          Win32\Debug\dumy\dumy\..\..\SourceCode\main.obj
        Manifest:
          c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\mt.exe
 /nologo /verbose /out:"Win32\Debug\SAGR-x86-Debug.exe.embed.manifest"
 /manifest "Win32\Debug\SAGR-x86-Debug.exe.intermediate.manifest"
          c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe
 /nologo /fo"Win32\Debug\SAGR-x86-Debug.exe.embed.manifest.res"
 Win32\Debug\SAGR-x86-Debug_manifest.rc
        LinkEmbedManifest:
          C:\Program Files (x86)\Microsoft Visual Studio
 10.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"D:\SAGR RIC v3\SAGR
 Development\MSVC++ Solution Space
 (2010)\CPPRocksProject\Win32\Debug\SAGR-x86-Debug.exe" /INCREMENTAL
 /NOLOGO /LIBPATH:C:\BoostBuilding\boost_1_50_0\lib32\ kernel32.lib
 user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
 ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST
 /ManifestFile:"Win32\Debug\SAGR-x86-Debug.exe.intermediate.manifest"
 /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"D:\SAGR RIC
 v3\SAGR Development\MSVC++ Solution Space
 (2010)\CPPRocksProject\Win32\Debug\SAGR-x86-Debug.pdb" /SUBSYSTEM:CONSOLE
 /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:\SAGR RIC v3\SAGR
 Development\MSVC++ Solution Space
 (2010)\CPPRocksProject\Win32\Debug\SAGR-x86-Debug.lib" /MACHINE:X86
 "Win32\Debug\SAGR-x86-Debug.exe.embed.manifest.res"
          Win32\Debug\dumy\dumy\..\..\SourceCode\main.obj
          CPPRocksProject.vcxproj -> D:\SAGR RIC v3\SAGR Development\MSVC++
 Solution Space (2010)\CPPRocksProject\Win32\Debug\SAGR-x86-Debug.exe
        BscMake:
          C:\Program Files (x86)\Microsoft Visual Studio
 10.0\VC\bin\bscmake.exe /nologo /o"D:\SAGR RIC v3\SAGR Development\MSVC++
 Solution Space (2010)\CPPRocksProject\Win32\Debug\SAGR-x86-Debug.bsc"
 Win32\Debug\dumy\dumy\..\..\SourceCode\main.sbr
        FinalizeBuildStatus:
          Deleting file "Win32\Debug\SAGR.unsuccessfulbuild".
          Touching "Win32\Debug\SAGR.lastbuildstate".
      1>Done Building Project "D:\SAGR RIC v3\SAGR Development\MSVC++
 Solution Space (2010)\CPPRocksProject\CPPRocksProject.vcxproj" (build
 target(s)).

 Build succeeded.

 Time Elapsed 00:00:06.67
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5127#comment:10>
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:10 UTC