Opened 5 years ago

Closed 5 years ago

#5428 closed defect (fixed)

Replace includes uniform_foo with uniform_foo_distribution

Reported by: Silier Owned by:
Priority: Should Have Milestone: Alpha 24
Component: Core engine Keywords:
Cc: Patch: Phab:D1823

Description (last modified by Stan)

The following headers coming with boost are deprecated:
boost/random/uniform_int
boost/random/uniform_real

And their includes should be replaced with
boost/random/uniform_int_distribution
boost/random/uniform_real_distribution

Currently used in:
ObjectBase.cpp
ParticleEmiterType.cpp
test_Sqrt.h
test_RangeManager.h

Change History (8)

comment:1 by Silier, 5 years ago

Summary: Replace uniform_foo to uniform_foo_distributionReplace includes uniform_foo with uniform_foo_distribution

comment:2 by Silier, 5 years ago

Description: modified (diff)

comment:3 by Stan, 5 years ago

In 22175:

Remove useless class, test class and use boost instead of it in test_RangeManager.h. Use boost::random::uniform_real_distribution<double> instead of deprecated boost::uniform_real<> in that class as well.

Refs #5428
Reviewed by: @Angen, @vladislavbelov

Differential Revision: https://code.wildfiregames.com/D1584

comment:4 by Stan, 5 years ago

Description: modified (diff)

comment:5 by Stan, 5 years ago

In 22178:

Fix rP22175. Refs #5428

Differential Revision: https://code.wildfiregames.com/D1821

comment:6 by Stan, 5 years ago

Patch: Phab:D1823

comment:7 by Silier, 5 years ago

Milestone: BacklogWork In Progress

comment:8 by Stan, 5 years ago

Keywords: simple removed
Milestone: Work In ProgressAlpha 24
Resolution: fixed
Status: newclosed

In r22211

Replace includes uniform_foo with uniform_foo_distribution as it's deprecated in newer versions of boost. It was added in the 1.47 version. Reviewed by: @Angen, @vladislavbelov Differential Revision: ​https://code.wildfiregames.com/D1823

Note: See TracTickets for help on using tickets.