[aspectc-user] vector<bool>

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


I can use vector<int>, but I can't use vector<bool>.
Does anybody know why?

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

#include <vector>
using std::vector;

class C
{
  vector<bool> bVec;
};

#endif
::::::::::::::
C.cc
::::::::::::::
#include "C.h"
::::::::::::::
C.ah
::::::::::::::
#ifndef _ASPC_AH_
#define _ASPC_AH_

aspect AspC
{

};

#endif
cd aspects/
leandro.costa at hydrus:~/personal/aspects/bug3> 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 ...
C.h:9: In instantiation of `vector<bool>':
%vector<bool>:1: error: `_Tp1' undeclared here
%vector<bool>:1: error: expected a type as argument 1
%vector<bool>:1: error: `_Alloc' undeclared here
%vector<bool>:1: error: expected a type as argument 1
  - Aborting
leandro.costa at hydrus:~/personal/aspects/bug3>


-- 
_____________________________________________

                      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/ac0f1470/attachment.html>


More information about the aspectc-user mailing list