You cannot do this.
In accordance with C ++ 8.3.2 / 1 standard:
Cv-qualified links are poorly formed, except when cv-qualifiers are introduced using typedef (7.1.3) or the template type argument (14.3), in which case cv-qualifiers are ignored.
source
share