Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

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



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com