Home Dashboard Directory Help
Search

In Visual C++ 2010, std::tr1::discrete_distribution and std::tr1::negative_binomial_distribution are missing nested input_type types, making them unusable with std::tr1::variate_generator by ildjarn


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 560994
Opened: 5/23/2010 10:35:00 PM
Access Restriction: Public
0
Workaround(s)
view
1
User(s) can reproduce this bug

Description

All <random> distributions should have a nested input_type type/typedef so they can be used with variate_generator. discrete_distribution and negative_binomial_distribution do not, so they get compilation errors when trying to use them.
Details
Sign in to post a comment.
Posted by Microsoft on 7/27/2010 at 4:15 PM
Argh, sorry for the repeated replies - Connect was giving me spurious errors (possibly caused by this bug's long title, but who knows.)

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 7/27/2010 at 4:10 PM
Hi,

Thanks for reporting this bug. We've fixed it, and the fix will appear in VC11. variate_generator was in TR1, but was removed from C++0x, and as a result the C++0x distributions were missing machinery required to work with it. We've added that machinery.

Note that we may remove variate_generator from VC11 (it has nasty gotchas), but if it's retained it will contain this fix.

If you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 7/27/2010 at 4:09 PM
Hi,

Thanks for reporting this bug. We've fixed it, and the fix will appear in VC11. variate_generator was in TR1, but was removed from C++0x, and as a result the C++0x distributions were missing machinery required to work with it. We've added that machinery.
Posted by Microsoft on 7/27/2010 at 4:08 PM
Hi,

Thanks for reporting this bug. We've fixed it, and the fix will appear in VC11. variate_generator was in TR1, but was removed from C++0x, and as a result the C++0x distributions were missing machinery required to work with it. We've added that machinery.

Note that we may remove variate_generator from VC11 (it has nasty gotchas), but if it's retained it will contain this fix.

If you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 7/27/2010 at 4:07 PM
Hi,

Thanks for reporting this bug. We've fixed it, and the fix will appear in VC11. variate_generator was in TR1, but was removed from C++0x, and as a result the C++0x distributions were missing machinery required to work with it. We've added that machinery.

Note that we may remove variate_generator from VC11 (it has nasty gotchas), but if it's retained it will contain this fix.

If you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 7/27/2010 at 4:06 PM
Hi,

Thanks for reporting this bug. We've fixed it, and the fix will appear in VC11. variate_generator was in TR1, but was removed from C++0x, and as a result the C++0x distributions were missing machinery required to work with it. We've added that machinery.

Note that we may remove variate_generator from VC11 (it has nasty gotchas), but if it's retained it will contain this fix.

If you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 7/27/2010 at 4:06 PM
Hi,

Thanks for reporting this bug. We've fixed it, and the fix will appear in VC11. variate_generator was in TR1, but was removed from C++0x, and as a result the C++0x distributions were missing machinery required to work with it. We've added that machinery.

Note that we may remove variate_generator from VC11 (it has nasty gotchas), but if it's retained it will contain this fix.

If you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 5/24/2010 at 11:14 PM
Thanks for your feedback. We were able to reproduce the issue you are seeing. We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Posted by Microsoft on 5/24/2010 at 4:02 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.