Opened 5 years ago

Last modified 2 years ago

#9611 new Bugs

boost::algorithm::clamp not available as boost::clamp

Reported by: Olaf van der Spek <ml@…> Owned by: Marshall Clow
Milestone: To Be Determined Component: algorithm
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

clamp isn't available in boost namespace itself while other algorithms are. Could it be added?

Change History (4)

comment:1 Changed 2 years ago by Alexander Zaitsev <zamazan4ik@…>

It's not a problem. Not all algortihm available in boost namespace. A lot of algortihm yo can find in boost::algortihm.

I think, there are some historical problems and in the near future we can't do with that something useful (because backward compatibility).

comment:2 Changed 2 years ago by anonymous

I don't see how backwards compat is a problem. Having the name available in both namespaces is simple AFAIK.

Soon we'll have std::clamp so then it won't matter as much.

comment:3 Changed 2 years ago by Alexander Zaitsev <zamazan4ik@…>

I think it's no good idea to have one algorithm in two namespaces.

comment:4 Changed 2 years ago by anonymous

Why?

Note: See TracTickets for help on using tickets.