Multiple definition fix

c++11
scrawl 10 years ago
parent f6f37e02df
commit 68bce7825e

@ -104,4 +104,11 @@ namespace Files
{ {
delete rdbuf(); delete rdbuf();
} }
IStreamPtr openConstrainedFileStream(const char *filename,
size_t start, size_t length)
{
return IStreamPtr(new ConstrainedFileStream(filename, start, length));
}
} }

@ -19,11 +19,7 @@ public:
typedef boost::shared_ptr<std::istream> IStreamPtr; typedef boost::shared_ptr<std::istream> IStreamPtr;
IStreamPtr openConstrainedFileStream(const char *filename, IStreamPtr openConstrainedFileStream(const char *filename, size_t start=0, size_t length=0xFFFFFFFF);
size_t start=0, size_t length=0xFFFFFFFF)
{
return IStreamPtr(new ConstrainedFileStream(filename, start, length));
}
} }

Loading…
Cancel
Save