ImageBuf::roi() and roi_full() should be const

How come the compiler doesn't warn you if you declare a method non-const, but it doesn't alter anything in the class?