We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acdd7b3 commit f34fe5bCopy full SHA for f34fe5b
source/sema.h
@@ -1277,21 +1277,6 @@ class sema
1277
return false;
1278
}
1279
1280
- // Ban overloading unary &
1281
- if (
1282
- n.identifier
1283
- && n.is_function()
1284
- && n.has_name("operator&")
1285
- && n.parameter_count() < 2
1286
- )
1287
- {
1288
- errors.emplace_back(
1289
- n.position(),
1290
- "overloading unary '" + n.name()->to_string() + "' is not allowed"
1291
- );
1292
- return false;
1293
- }
1294
-
1295
// Require that ~/comparison/assignment operators must be members
1296
if (
1297
n.identifier
0 commit comments