]> code.bitgloo.com Git - clyne/consteval-huffman.git/commitdiff
Revert attempt to switch from struct to class
authorclyne <clyne@bitgloo.com>
Wed, 1 Jul 2020 20:48:33 +0000 (16:48 -0400)
committerGitHub <noreply@github.com>
Wed, 1 Jul 2020 20:48:33 +0000 (16:48 -0400)
consteval_huffman.hpp

index f2204dd750dbd070daab2a5e06cf94d002c1dc40..9dde53a918f4cf7215c91526e6e57621ed3c0c34 100644 (file)
@@ -9,9 +9,8 @@
  * @tparam data Expected to be a null-terminated `char` of data to be compressed.
  */
 template<auto data>
-class huffman_compress
+struct huffman_compress
 {
-public:
     using size_t = unsigned long int;
 
     // Contains the compressed data.
@@ -29,7 +28,6 @@ public:
         compress();
     }
 
-private:
     // Node structure used for tree-building.
     struct node {
         int value = 0;