From 05eb56e00b8e39da56e05c29bb921cc1f1e62a50 Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Thu, 31 Mar 2016 08:33:13 +0200
Subject: [PATCH] fix alphabet template

---
 alib2data/src/alphabet/Alphabet.hpp | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/alib2data/src/alphabet/Alphabet.hpp b/alib2data/src/alphabet/Alphabet.hpp
index ee5a330fc5..ec1fd58226 100644
--- a/alib2data/src/alphabet/Alphabet.hpp
+++ b/alib2data/src/alphabet/Alphabet.hpp
@@ -76,6 +76,13 @@ public:
 		data = std::move ( symbols );
 	}
 
+	/**
+	 * @return set of symbols in the alphabet.
+	 */
+	std::set < SymbolType > & get ( ) {
+		return data;
+	}
+
 	/**
 	 * @return set of symbols in the alphabet.
 	 */
@@ -169,7 +176,7 @@ public:
 	/**
 	 * Construct an alphabet pack from single alphabet.
 	 */
-	AlphabetPack ( SymbolType first ) : Alphabet < Derived, SymbolType, AlphabetType1 > ( std::move ( first ) ) {
+	AlphabetPack ( std::set < SymbolType > first ) : Alphabet < Derived, SymbolType, AlphabetType1 > ( std::move ( first ) ) {
 	}
 
 };
@@ -263,6 +270,14 @@ public:
 		}
 	}
 
+	/**
+	 * Returns the current alphabet element of ElementType.
+	 * @return the notable symbol from the alphabet
+	 */
+	SymbolType & get ( ) {
+		return data;
+	}
+
 	/**
 	 * Returns the current alphabet element of ElementType.
 	 * @return the notable symbol from the alphabet
-- 
GitLab