Containers with typed indexing for [], .at()

((posting again, first time didn't get through...)) Hello All, I'm wondering if there's an interest in a container wrapper that will more strongly type indexing via the [] operator and .at() function. The purpose would be mainly for handling communications packets, where specific indices have distinct meanings. A container can be created that will allow only a specific enum types to be used as an index, lessening the possibility that the wrong indices are used for a container. I mentioned it in comp.std.c++ in the following post: http://groups.google.ca/group/comp.std.c++/msg/e0843191ed002d08 And after a few comments, I threw together a "typed_index_wrapper" for converting a std::vector, std::deque or boost::array into containers with typed indexing functions: http://groups.google.ca/group/comp.std.c++/msg/05396ffb5a8968a7 Do you think I should go through the process of boostifying this, or is it somewhat of a trivial result? Thanks, Derek.

Derek Ross <derek@antiquark.com> writes:
Do you think I should go through the process of boostifying this, or is it somewhat of a trivial result?
If it has broad applicability, submitting it as a library is a good idea. If its applicability is limited to communications packets, it might be appropriate to fold it into one of the communications libraries (e.g. ASIO?) -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
Derek Ross