employer cover photo
employer logo
employer logo

Pixar Animation Studios

Is this your company?

Pixar Animation Studios interview question

const func, mutable keyword. Tell us a scenario where mutable is used.

Interview Answer

Anonymous

7 Feb 2016

Cannot imagine any sensible design with mutable keyword used. You can find anecdotal examples in the Internet, but all of them are just patches on the face of design. the mutable breaks const-correctness in C++