// Una referencia sin const no se ata a un valor temporal.
#include <cstddef>
#include <string>

std::size_t length(std::string& text) {
    return text.size();
}

int main() {
    return static_cast<int>(length("hola"));
}
