Browse Source

Reverted "explicit" keyword from constructors remove

pcmattulat 4 years ago
parent
commit
39d2ba091b
2 changed files with 6 additions and 6 deletions
  1. 3 3
      source/boxing/Boolean.hpp
  2. 3 3
      source/boxing/Integer.hpp

+ 3 - 3
source/boxing/Boolean.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-09
- * Changed:         2020-08-13
+ * Changed:         2020-08-14
  *
  * */
 
@@ -17,13 +17,13 @@ namespace ls_std {
   class Boolean : public Class, IBoxing {
     public:
 
-      Boolean(bool _value);
+      explicit Boolean(bool _value);
       Boolean();
       ~Boolean() = default;
 
       // conversion operator
 
-      operator bool() const;
+      explicit operator bool() const;
 
       // assignment operators
 

+ 3 - 3
source/boxing/Integer.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-07
- * Changed:         2020-08-13
+ * Changed:         2020-08-14
  *
  * */
 
@@ -17,13 +17,13 @@ namespace ls_std {
   class Integer : public Class, IBoxing {
     public:
 
-      Integer(int _value);
+      explicit Integer(int _value);
       Integer();
       ~Integer() = default;
 
       // conversion operator
 
-      operator int() const;
+      explicit operator int() const;
 
       // assignment operators