|
From: | Julien Bect |
Subject: | C++ question... |
Date: | Wed, 2 Aug 2017 12:07:48 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Hi guys,Still trying to get the JIT back to life, I stumbled upon the following design :
class jit_operation { public: // ... const std::string& name (void) const { return mname; } void stash_name (const std::string& aname) { mname = aname; } // ... private // ... std::string mname; };Is there some fancy C++ trick hidden there, or would it equivalent to simply have a public std::string variable "name"?
@++ Julien
[Prev in Thread] | Current Thread | [Next in Thread] |