Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A suggestion: wrap the bulk of content in platform-specific .cpp files, with pre-processor guards that'll check for platform. This should allow the library to be imported into other projects, simply by importing all .cpp files, and adding a path for header-includes. With that done, adding support for extra build systems becomes an optional, albeit nice-to-have addition, but by no means required.


Hi,

Interesting, haven't thought about that, will probably make that small change in the future on this lib and some others of my libs

Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: