~siretart/aspectc++/debian

« back to all changes in this revision

Viewing changes to Puma/gen-release/step2/src/DeducedArgument.cc

  • Committer: Reinhard Tartler
  • Date: 2013-10-13 18:20:07 UTC
  • mto: This revision was merged to the branch mainline in revision 101.
  • Revision ID: siretart@tauware.de-20131013182007-qc3ibv60inzzk8l4
Tags: upstream-1.2
Import upstream version 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
}
73
73
 
74
74
void DeducedArgument::print(std::ostream &os) const {
 
75
  print (os, true);
 
76
}
 
77
 
 
78
void DeducedArgument::print(std::ostream &os, bool abs) const {
75
79
  if (Type()) {
76
 
    Type()->TypeText(os);
 
80
    Type()->TypeText(os, 0, abs);
77
81
  }
78
82
  else if (Value()) {
79
83
    CTree* arg = TemplateArg();
80
84
    CTypeInfo* type = arg ? arg->Type() : 0;
81
85
    bool addr = arg ? CCSemExpr::isAddrExpr(arg) : false;
82
86
    if (addr || (type && (type->isArray() || type->isFunction()))) {
83
 
      // §14.3.2 address as non-type template argument
 
87
      // ��14.3.2 address as non-type template argument
84
88
      CObjectInfo* obj = CCSemExpr::findObject(arg);
85
89
      if (obj)
86
 
        os << (addr ? "&" : "") << obj->QualName(true);
 
90
        os << (addr ? "&" : "") << obj->QualName(abs);
87
91
      else
88
92
        os << *Value();
89
93
    } else {