|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Std : : unique use of Linux
I wrote in a procedure under Windows, which used a Std : : unique, but when translated 移植到linux mistakes, the following code
Std : : set<double, Std : : greater<double>; "; Doseset, biasset;
Std : : set<int, Std : : greater<int>; "; Procset;
Std : : map<int, LMCCondition*>; : : iterator pos;
For (conditions.begin poses = (); Poses> conditions.end (); Pos++)
{
Doseset.insert (pos->;second->;m_dose);
Biasset.insert (con->;m_bias);
Procset.insert (con->;m_processid);
}
Std : : unique (doseset.begin (), doseset.end (), DoubleEqual ());
Std : : unique (biasset.begin (), biasset.end (), DoubleEqual ());
Error message as follows :
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.4/. . /. . /. . /. . /include/c++/3.4.4/bits/stl_algo.
In function h : : : unique `_ForwardIterator Std (_ForwardIterator, _ForwardIterator, _Binar
YPredicate) [with _ForwardIterator = : : Std _Rb_tree_const_iterator<double>;, _BinaryPredi
Cate = DoubleEqual] ':
LMCCondParamRangePanel.cpp:317 instantiated from here :
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.4/. . /. . /. . /. . /include/c++/3.4.4/bits/stl_algo.
H:1401 : read-only location assignment of error :
Thank you, the |
| |