-
-
Notifications
You must be signed in to change notification settings - Fork 37.4k
Returning a wrapped class from another class #2273
Copy link
Copy link
Closed
Labels
c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.questionIssues asking questions about Node.js.Issues asking questions about Node.js.
Description
Activity
Metadata
Metadata
Assignees
Labels
c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.questionIssues asking questions about Node.js.Issues asking questions about Node.js.
I have two C++ classes. A method on one of them is supposed to return a new instance of
b. I tried to follow the pattern described here:but then:
I can't find an example of this pattern in the io.js source, and the closest google result is an unanswered SO question. I found one example where a factory method was added to
Barbut that seems like it should be unnecessary. Any tips on the pattern to use here? Thanks.