bloomberg / bde

Basic Development Environment - a set of foundational C++ libraries used at Bloomberg.
Apache License 2.0
1.68k stars 318 forks source link

bslstl_forwarditerator.h(156) : error C2338: Forward iterators must return a true reference to their element when dereferenced. #251

Closed junkbondtrader closed 5 years ago

junkbondtrader commented 5 years ago
C:\Source\Exploring\bde>waf build
Using python
Waf: Entering directory `C:\Source\Exploring\bde\build'
Waf: Using 12 jobs (change with -j)
[  75/1043] Linking build\groups\bsl\bsldoc\bsldoc.lib
[ 269/1043] Compiling groups\bsl\bslstl\bslstl_bidirectionaliterator.cpp
[ 272/1043] Compiling groups\bsl\bslstl\bslstl_deque.cpp
[ 274/1043] Compiling groups\bsl\bslstl\bslstl_forwarditerator.cpp
[ 287/1043] Compiling groups\bsl\bslstl\bslstl_multimap.cpp
[ 288/1043] Compiling groups\bsl\bslstl\bslstl_multiset.cpp
[ 289/1043] Compiling groups\bsl\bslstl\bslstl_ostringstream.cpp
[ 290/1043] Compiling groups\bsl\bslstl\bslstl_ownerless.cpp
[ 291/1043] Compiling groups\bsl\bslstl\bslstl_pair.cpp
[bslstl_bidirectionaliterator.cpp (ERROR)] <<<<<<<<<<
bslstl_bidirectionaliterator.cpp
c:\source\exploring\bde\groups\bsl\bslstl\bslstl_forwarditerator.h(156) : error C2338: Forward iterators must return a true reference to their element when dereferenced.
        c:\source\exploring\bde\groups\bsl\bslstl\bslstl_forwarditerator.h(234) : see reference to class template instantiation 'BloombergLP::bslstl::ForwardIterator<T,ITER_IMP,TAG_TYPE>' being compiled
>>>>>>>>>>
[bslstl_forwarditerator.cpp (ERROR)] <<<<<<<<<<
bslstl_forwarditerator.cpp
c:\source\exploring\bde\groups\bsl\bslstl\bslstl_forwarditerator.h(156) : error C2338: Forward iterators must return a true reference to their element when dereferenced.
        c:\source\exploring\bde\groups\bsl\bslstl\bslstl_forwarditerator.h(234) : see reference to class template instantiation 'BloombergLP::bslstl::ForwardIterator<T,ITER_IMP,TAG_TYPE>' being compiled
>>>>>>>>>>
[bslstl_deque.cpp (ERROR)] <<<<<<<<<<
bslstl_deque.cpp
c:\source\exploring\bde\groups\bsl\bslstl\bslstl_forwarditerator.h(156) : error C2338: Forward iterators must return a true reference to their element when dereferenced.
        c:\source\exploring\bde\groups\bsl\bslstl\bslstl_forwarditerator.h(234) : see reference to class template instantiation 'BloombergLP::bslstl::ForwardIterator<T,ITER_IMP,TAG_TYPE>' being compiled
>>>>>>>>>>
Waf: Leaving directory `C:\Source\Exploring\bde\build'
Build failed
 -> task in 'bslstl_lib' failed with exit status 2 (run with -v to display more information)
 -> task in 'bslstl_lib' failed with exit status 2 (run with -v to display more information)
 -> task in 'bslstl_lib' failed with exit status 2 (run with -v to display more information)
C:\Source\Exploring\bde>waf build -v
Using python
Waf: Entering directory `C:\Source\Exploring\bde\build'
Waf: Using 12 jobs (change with -j)
Enabling JIT support
[ 269/1043] Compiling groups\bsl\bslstl\bslstl_bidirectionaliterator.cpp
16:50:23 runner '"C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\amd64\\CL.exe" /nologo /nologo /MDd /TP -DBDE_BUILD_TARGET_DBG -DBDE_BUILD_TARGET_EXC -DBDE_BUILD_TARGET_MT /nologo /Oi /we4715 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /DNOMINMAX /DNOGDI /GR /wd4661 /we4150 /wd4510 /wd4610 /D_WIN32_WINNT=0x0502 /DWINVER=0x0502 /EHsc /Zi /Fdgroups\\bsl\\bsl.pdb -DBDE_NO_CPP_STDLIB -D_RWSTD_COMPILE_INSTANTIATE=1 /IC:\\Source\\Exploring\\bde\\groups\\bsl\\bslstl /IC:\\Source\\Exploring\\bde\\groups\\bsl\\bslalg /IC:\\Source\\Exploring\\bde\\groups\\bsl\\bsltf /IC:\\Source\\Exploring\\bde\\groups\\bsl\\bslma /IC:\\Source\\Exploring\\bde\\groups\\bsl\\bslh /IC:\\Source\\Exploring\\bde\\groups\\bsl\\bslmf /IC:\\Source\\Exploring\\bde\\groups\\bsl\\bslscm /IC:\\Source\\Exploring\\bde\\groups\\bsl\\bsls "/IC:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\INCLUDE" "/IC:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\ATLMFC\\INCLUDE" "/IC:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\include" ..\\groups\\bsl\\bslstl\\bslstl_bidirectionaliterator.cpp /FC /c /FoC:\\Source\\Exploring\\bde\\build\\groups\\bsl\\bslstl\\bslstl_bidirectionaliterator.cpp.1.o'
[bslstl_bidirectionaliterator.cpp (ERROR)] <<<<<<<<<<
bslstl_bidirectionaliterator.cpp
c:\source\exploring\bde\groups\bsl\bslstl\bslstl_forwarditerator.h(156) : error C2338: Forward iterators must return a true reference to their element when dereferenced.
        c:\source\exploring\bde\groups\bsl\bslstl\bslstl_forwarditerator.h(234) : see reference to class template instantiation 'BloombergLP::bslstl::ForwardIterator<T,ITER_IMP,TAG_TYPE>' being compiled
>>>>>>>>>>
Waf: Leaving directory `C:\Source\Exploring\bde\build'
Build failed
 -> task in 'bslstl_lib' failed with exit status 2:
        {task 72372160L: cxx bslstl_bidirectionaliterator.cpp -> bslstl_bidirectionaliterator.cpp.1.o}
['C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\amd64\\CL.exe', '/nologo', '/nologo', '/MDd', '/TP', '-DBDE_BUILD_TARGET_DBG', '-DBDE_BUILD_TARGET_EXC', '-DBDE_BUILD_TARGET_MT', '/nologo', '/Oi', '/we4715', '/D_CRT_SECURE_NO_DEPRECATE', '/D_SCL_SECURE_NO_DEPRECATE', '/DNOMINMAX', '/DNOGDI', '/GR', '/wd4661', '/we4150', '/wd4510', '/wd4610', '/D_WIN32_WINNT=0x0502', '/DWINVER=0x0502', '/EHsc', '/Zi', '/Fdgroups\\bsl\\bsl.pdb', '-DBDE_NO_CPP_STDLIB', '-D_RWSTD_COMPILE_INSTANTIATE=1', '/IC:\\Source\\Exploring\\bde\\groups\\bsl\\bslstl', '/IC:\\Source\\Exploring\\bde\\groups\\bsl\\bslalg', '/IC:\\Source\\Exploring\\bde\\groups\\bsl\\bsltf', '/IC:\\Source\\Exploring\\bde\\groups\\bsl\\bslma', '/IC:\\Source\\Exploring\\bde\\groups\\bsl\\bslh', '/IC:\\Source\\Exploring\\bde\\groups\\bsl\\bslmf', '/IC:\\Source\\Exploring\\bde\\groups\\bsl\\bslscm', '/IC:\\Source\\Exploring\\bde\\groups\\bsl\\bsls', '/IC:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\INCLUDE', '/IC:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\ATLMFC\\INCLUDE', '/IC:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\include', '..\\groups\\bsl\\bslstl\\bslstl_bidirectionaliterator.cpp', '/FC', '/c', '/FoC:\\Source\\Exploring\\bde\\build\\groups\\bsl\\bslstl\\bslstl_bidirectionaliterator.cpp.1.o']
C:\Source\Exploring\bde>waf configure
Using python
Setting top to                           : C:\Source\Exploring\bde
Setting out to                           : C:\Source\Exploring\bde\build
Checking for 'msvc' (C compiler)         : C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\CL.exe
Checking for 'msvc' (C++ compiler)       : C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\CL.exe
Prefix                                   : C:\users\andre\appdata\local\temp
Uplid                                    : windows-windows_nt-x86_64-10.0-cl-16.00
Ufid                                     : dbg_exc_mt_64
Loading bal                              : ok
Loading bbl                              : ok
Loading bdl                              : ok
Loading bsl                              : ok
Loading btl                              : ok
Loading decnumber                        : ok
Loading inteldfp                         : ok
Loading pcre2                            : ok
Using default option rules from          : C:\Source\Exploring\bde-tools\etc\default.opts
Configured package groups                : bal bbl bdl bsl btl
Configured third-party packages          : decnumber inteldfp pcre2
Use flat include directory               : no
Lib install directory                    : lib
Pkg-config install directory             : lib\pkgconfig
# UORs, inner packages, and components   : 8 43 715
'configure' finished successfully (21.241s)
osubboo commented 5 years ago

Closing stale issues.