Bug #82

TDD complaining about missing operator* for pointer type indirectly defined

Added by Peter Sommerlad about 4 years ago.

Status:NewStart date:15 Sep 2013
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

void dummy(){
int i{42};
const int pci{&i}; //pointer to const int
//(*pci)++; // does not compile
using ptri=int *; // type pointer to int
const ptri pi{&i}; // const effect on pi only
(*pi)++; // allowed, const pointer to int <-------- here TDD complains about missing operator
, indirectly a pointer through a using alias
std::cout << i; // 43
}

Also available in: Atom PDF