Opened 9 years ago

Last modified 6 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 by Alexander Zaitsev <zamazan4ik@…>, 6 years ago

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 by anonymous, 6 years ago

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 by Alexander Zaitsev <zamazan4ik@…>, 6 years ago

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

comment:4 by anonymous, 6 years ago

Why?

Note: See TracTickets for help on using tickets.