Boost logo

Boost Users :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2007-09-24 04:01:26

Boris skrev:
> Before anyone refers me to the FAQ at
> - I read it. While it's clear why a reference is used I don't understand
> why it is a *non-const* reference. Any reason why it's not const?

A temporary object can bind to a const reference, thus a call to a
throwing constructor can be placed as the key argument.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at