Should be:
```c++
virtual float width() const = 0;
```