Merge pull request #23 from ulikoehler/master

Add README syntax highlighting
This commit is contained in:
Nobuyuki Kubota 2013-08-17 02:32:36 -07:00
commit e8ffe7ef96

View File

@ -20,11 +20,11 @@ To use the library in your program, include msgpack.hpp header and link "msgpack
## Example
```CPP
#include <msgpack.hpp>
#include <vector>
#include <msgpack.hpp>
#include <vector>
int main(void) {
int main(void) {
// This is target object.
std::vector<std::string> target;
target.push_back("Hello,");
@ -48,7 +48,9 @@ To use the library in your program, include msgpack.hpp header and link "msgpack
// If the type is mismatched, it throws msgpack::type_error.
obj.as<int>(); // type is mismatched, msgpack::type_error is thrown
}
}
```
API documents and other example codes are available at the [wiki.](http://redmine.msgpack.org/projects/msgpack/wiki)