Changeset 652b5b0 in tol


Ignore:
Timestamp:
Nov 4, 2009, 2:55:43 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
bcc7416
Parents:
ba8b08f
Message:

The operator + cannot use a copy of (*this) due we don't want structure and other features but just the elements.
Fixed #768

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1594 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/set_type/set.cpp

    rba8b08f r652b5b0  
    761761//--------------------------------------------------------------------
    762762{
    763   BSet res  = (*this);
    764   for(BInt n=1; n<=set.Card(); n++)
     763  int n;
     764  BSet res;
     765  res.PrepareStore(Card()+set.Card());
     766  for(n=0; n<array_.Size(); n++)
     767  {
     768    res.AddElement(array_[n]);
     769  }
     770  for(n=1; n<=set.Card(); n++)
    765771  {
    766772    if(!Includes(set[n]))
Note: See TracChangeset for help on using the changeset viewer.