From d92916ab6aa90f79cbb3dc322a0a9a8b9da0f625 Mon Sep 17 00:00:00 2001
From: Botond Baranyi <botond.baranyi@ericsson.com>
Date: Mon, 7 Jun 2021 15:34:35 +0200
Subject: [PATCH] Integer constructor with BIGNUM argument was made public
 (issue #551)

Signed-off-by: Botond Baranyi <botond.baranyi@ericsson.com>
---
 core/Integer.hh                                              | 5 ++---
 .../6-mapping_ttcn3_data_types_to_c++_constructs.adoc        | 1 +
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/Integer.hh b/core/Integer.hh
index 783953a78..42705bfa6 100644
--- a/core/Integer.hh
+++ b/core/Integer.hh
@@ -41,9 +41,7 @@ template<typename T>
 class OPTIONAL;
 
 class INTEGER : public Base_Type {
-  // Private constructor for internal initialization.  It's not part of the
-  // public API.
-  explicit INTEGER(BIGNUM *other_value);
+  
   int from_string(const char *);
   
   int get_nof_digits();
@@ -82,6 +80,7 @@ public:
   INTEGER(const INTEGER& other_value);
   INTEGER(int other_value);
   explicit INTEGER(const char *other_value);
+  explicit INTEGER(BIGNUM *other_value);
   ~INTEGER();
   void clean_up();
 
diff --git a/usrguide/apiguide/6-mapping_ttcn3_data_types_to_c++_constructs.adoc b/usrguide/apiguide/6-mapping_ttcn3_data_types_to_c++_constructs.adoc
index 8d3fd07b5..02f782a49 100644
--- a/usrguide/apiguide/6-mapping_ttcn3_data_types_to_c++_constructs.adoc
+++ b/usrguide/apiguide/6-mapping_ttcn3_data_types_to_c++_constructs.adoc
@@ -60,6 +60,7 @@ The class `INTEGER` has the following public member functions:
 |`INTEGER(int)` |Initializes to a given value.
 |`INTEGER(const INTEGER&`) |Copy constructor.
 |`explicit INTEGER(const char *)` |Initializes with the (NUL terminated) string representation of an integer.
+|`explicit INTEGER(BIGNUM *other_value)` |Initializes with a BIGNUM object.
 ^.^|_Destructor_
 |`ËœINTEGER()` |
 .2+^.^|_Assignment operators_
-- 
GitLab