Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Node::Node()
- {
- do_something();
- }
- /* What is the proper syntax here to call the above constructor, and have initialization lists. */
- Node::Node(const unsigned int idx, std::shared_ptr<ioctl_node_t> io) : Node(), index(idx), node(io)
- {
- do_more_stuff();
- }
- /* The above results in the following error.
- node.cc:26:106: error: mem-initializer for ‘Node::index’ follows constructor delegation
- Node::Node(const unsigned int idx, std::shared_ptr<ioctl_node_t> n) : Node(), index(idx), node(n)
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement