Wraps class type C into a reference-counting value type.
Constructs a new reference-counted instance of C. (An external factory function is used instead of static opCall to avoid conflicting with the class's non-static opCall.)
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Basic reference-counting for classes.