Bug #82

TDD complaining about missing operator* for pointer type indirectly defined

Added by Peter Sommerlad almost 5 years ago.

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


Target version:-


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