$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [IdentityType] Const omission undocumented.
From: Mostafa (mostafa_working_away_at_[hidden])
Date: 2013-11-15 19:02:11
#include <boost/utility/identity_type.hpp>
#include <utility>
int main()
{
BOOST_IDENTITY_TYPE(( std::pair<int,int> const )) x;
// This compiles, so the const qualification in the
// above macro parameter is ignored.
x = std::make_pair(0,1);
return 0;
}
The omission of const qualification in BOOST_IDENTITY_TYPE types is
undocumented. This omission maybe deduced from the documented
implementation, but, as noted, that is not part of the library api and is
subject to change. I therefore propose that this behaviour be documented
as part of the library's public api.
Mostafa