-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added swig support for templates with array parameters (#1742)
* Added support for templates with array parameters * Added test case for array templates
- Loading branch information
1 parent
f2e93ac
commit 7b4253d
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
@file | ||
@verbatim | ||
PURPOSE: | ||
(Test if we can build with arrays as template parameters) | ||
@endverbatim | ||
*******************************************************************************/ | ||
|
||
#ifndef ARRAY_TEMPLATE_TESTS_HH | ||
#define ARRAY_TEMPLATE_TESTS_HH | ||
|
||
// System include files. | ||
#include <string> | ||
#include <iostream> | ||
#include <sstream> | ||
|
||
|
||
template <class SourceType> | ||
class ArrayTemplate | ||
{ | ||
public: | ||
ArrayTemplate(const SourceType& source) | ||
: source(source) | ||
{ | ||
} | ||
|
||
ArrayTemplate(const ArrayTemplate&) = delete; | ||
ArrayTemplate& operator=(const ArrayTemplate&) = delete; | ||
|
||
private: | ||
const SourceType& source; | ||
}; | ||
|
||
|
||
#endif | ||
|