Skip to content

[Feature Request] Header-Only C++ Implementation #23

@robdotson

Description

@robdotson

It would also be great if there was the option for header-only implementations for non-template classes/structs, and only generating .cpp files if there are static methods:

// foo.h
class foo {
int six;
public:
static std::string bar();
foo( int one, int two, int three ) { six = one + two + three; }
virtual ~foo(){}
};

// foo.cpp
std::string foo::bar() { return std::to_string("hello!"); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions