Opened 12 years ago

Closed 12 years ago

#5321 closed Bugs (fixed)

random/subtract_with_carry.hpp Visual C++ 8.0 incompatibility

Reported by: Ralf W. Grosse-Kunstleve Owned by: Steven Watanabe
Milestone: To Be Determined Component: random
Version: Boost 1.45.0 Severity: Problem
Keywords: Cc:

Description

boost svn trunk rev. 70018

Visual C++ 8.0:

C:\AUTOBU~3\sources\boost\boost/random/subtract_with_carry.hpp(263) : error C2063: 'boost::random::detail::subtract_with_carry_discard' : not a function

C:\AUTOBU~3\sources\boost\boost/random/subtract_with_carry.hpp(300) : see reference to class template instantiation 'boost::random::subtract_with_carry_engine<IntType,w,s,r>' being compiled

C:\AUTOBU~3\sources\boost\boost/random/subtract_with_carry.hpp(503) : error C2063: 'boost::random::detail::subtract_with_carry_discard' : not a function

C:\AUTOBU~3\sources\boost\boost/random/subtract_with_carry.hpp(522) : see reference to class template instantiation 'boost::random::subtract_with_carry_01_engine<RealType,w,s,r>' being compiled

Full logs are here: http://cci.lbl.gov/cctbx_build/results/2011_03_15_2206/win_xp_vc80_py271_build_log

It works fine with Visual C++ 9.0 and 10.0.

Change History (4)

comment:1 by Steven Watanabe, 12 years ago

Owner: changed from No-Maintainer to Steven Watanabe
Status: newassigned

comment:2 by Steven Watanabe, 12 years ago

(In [70071]) MSVC 7.1 and 8.0 seem to have trouble handling this friend declaration. Try to make it simpler. Refs #5321.

comment:3 by Ralf W. Grosse-Kunstleve, 12 years ago

The fix works with Visual C++ 8.0. Thanks!

comment:4 by Ralf W. Grosse-Kunstleve, 12 years ago

Resolution: fixed
Status: assignedclosed

closing this ticket; problem fixed

Note: See TracTickets for help on using tickets.