From d53e4151e553a7d786382d31ab08132f496facca Mon Sep 17 00:00:00 2001 From: Heiko Strathmann Date: Tue, 23 Jul 2013 15:28:39 +0100 Subject: [PATCH] fixed generics to pass unit-tests --- src/shogun/io/MemoryMappedFile.h | 4 ++++ src/shogun/io/SimpleFile.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/shogun/io/MemoryMappedFile.h b/src/shogun/io/MemoryMappedFile.h index 4319fd7ee3a..57c4e5db80f 100644 --- a/src/shogun/io/MemoryMappedFile.h +++ b/src/shogun/io/MemoryMappedFile.h @@ -42,6 +42,8 @@ template class CMemoryMappedFile : public CSGObject address = NULL; rw = 'r'; last_written_byte = 0; + + set_generic(); } /** constructor @@ -101,6 +103,8 @@ template class CMemoryMappedFile : public CSGObject address = mmap(NULL, length, mmap_prot, mmap_flags, fd, 0); if (address == MAP_FAILED) SG_ERROR("Error mapping file") + + set_generic(); } /** destructor */ diff --git a/src/shogun/io/SimpleFile.h b/src/shogun/io/SimpleFile.h index f8e74c0bbdc..7176c987d30 100644 --- a/src/shogun/io/SimpleFile.h +++ b/src/shogun/io/SimpleFile.h @@ -35,6 +35,8 @@ template class CSimpleFile : public CSGObject file=NULL; filename=strdup(""); status = false; + + set_generic(); } /** constructor