Support for building with C++11

This commit is contained in:
ridiculousfish
2013-04-09 14:07:19 -07:00
parent aa78292c2a
commit e1734468f5
2 changed files with 149 additions and 6 deletions

11
io.h
View File

@@ -2,8 +2,15 @@
#define FISH_IO_H
#include <vector>
#include <tr1/memory>
using std::tr1::shared_ptr;
#if __cplusplus > 199711L
// C++11
#include <memory>
using std::shared_ptr;
#else
// C++03
#include <tr1/memory>
using std::tr1::shared_ptr;
#endif
/**
Describes what type of IO operation an io_data_t represents