An open API service indexing awesome lists of open source software.

https://github.com/zenixls2/stl2


https://github.com/zenixls2/stl2

cpp golang stl swig

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# STL2 golang binding
This package extends swig implementation on c++ stl by supporting iterator
and other c++11/14 features. The build flow should be a little bit different.

### Development
A recommended way to start developing is to get this project by command:

```bash
go get github.com/zenixls2/stl2
```

You can look into `example` folder for the use case.
Some macors are introduced to perform template engine like features.
Notice that you have to write your own swig interface to use these macros:

```swig
%include

namespace std {
MAP_DEFINE(int, int)
};
```

Currently since swig doesn't support multiple paths for `SWIG_LIB`,
You have to manually write a Makefile to add `-I$GOPATH/src/github.com/zenixls2/stl2` option for swig build flow.