Boost logo

Boost :

Subject: [boost] Should I use std::get or boost::get (or both) in Boost.Array
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2012-12-18 16:21:42

I've got a feature request for Boost.Array to provide compile-time checked access to the members of an array.

In C++11, this is done using std::get<Idx> (std::array).
Fine, I can specialize this in Boost.Array - well, for C++11.
I can't specialize a nonexistent template in namespace std for C++03 (well, I _can_ but the standard says I must not).

But Boost.Tuple has a get<> template.
I believe I can specialize that for Boost.Array, w/o stepping on Boost.Tuples code.

What do people think?


-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki

Boost list run by bdawes at, gregod at, cpdaniel at, john at