mirror of https://github.com/KLayout/klayout.git
Reimplementing virtual functions with
"const &" arguments wasn't behaving as
expected because these arguments were
copied.
Now, "const &" for arguments (in virtual
function reimplementation) is not implemented
as a copy.
In addition, now it's possible to declare
results as references always (also if const &).
See gsiTest.cc:1078 for example:
// gsi::arg_make_reference makes the function's return value
// always being taken as a reference
gsi::method<C_P, const CopyDetector &, const CopyDetector &, gsi::arg_make_reference> ("pass_cd_cref_as_ref", &C_P::pass_cd_cref)
|
||
|---|---|---|
| .. | ||
| algo | ||
| bd | ||
| bool | ||
| cif | ||
| drc | ||
| dxf | ||
| gds | ||
| gds2_txt | ||
| klayout_main | ||
| lefdef/issue-172 | ||
| net_tracer | ||
| oasis | ||
| other | ||
| pymod | ||
| python | ||
| ruby | ||
| vendor/ruby/test | ||