Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2002-09-04 08:35:30

I still not quit understand the extract. I understand extraction of value:
  any a = 0;
  int i = extract<int>(a); // copy created

but I puzzled with extraction of references and pointers. May be its better
to rename to access?
  any a = 0;
  int & r = access<int &>(a); // direct access using reference
  int * r = access<int *>(a); // direct access using pointer

  int i = access<int>(a); // error, reference or pointer expected

Best regards,
Alexander Nasonov
e-mail account: alnsn
e-mail server:

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