[aspectc-user] string::operator+

Leandro Costa leandro.costa at gmail.com
Fri Dec 5 16:50:21 CET 2008


string::operator+ is considered invalid by AspectC++:

leandro.costa at hydrus:~/personal/aspects/bug4> more C.h C.cc C.ah
::::::::::::::
C.h
::::::::::::::
#ifndef _C_H_
#define _C_H_

class C
{
  C ();
};

#endif
::::::::::::::
C.cc
::::::::::::::
#include "C.h"

#include <string>
using std::string;

C::C ()
{
  string s1 = "";
  string s2 = "";
  string s3 = s1 + s2;
}
::::::::::::::
C.ah
::::::::::::::
#ifndef _ASPC_AH_
#define _ASPC_AH_

aspect AspC
{

};

#endif
leandro.costa at hydrus:~/personal/aspects/bug4> ac++ -v9 --real-instances
--config puma.config -p . -a C.ah -c C.cc -o C.acc
* Running ac++ 1.0pre4 svn
* Handling Translation Unit `C.cc'.
  - Path "C.cc"
  - Inserting namespace AC
  - Parsing ...
  - Setting up join point model 1 ...
    Concrete aspect AspC
  - Setting Aspect Access Priviledges ...
  - Weaving Introductions ...
  - Weaving Advice Declarations ...
  - Weaving Singleton Aspects ...
  - Commiting
  - Preparing introductions ...
  - Parsing again ...
C.cc:10: error: invalid operand to binary `+'
C.cc:10: error: undefined type
  - Aborting
leandro.costa at hydrus:~/personal/aspects/bug4>


-- 
_____________________________________________

                      Leandro Souza Costa

"A vitória se encastela em jardins encantadores,
 mas para se chegar a ela não há caminho de flores"
_____________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20081205/4db8033e/attachment.html>


More information about the aspectc-user mailing list