Skip to content

Commit

Permalink
add static member endian to jenkins1 hash algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
rhalbersma committed Dec 9, 2016
1 parent bb24f03 commit 94868f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jenkins1.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#ifndef JENKINS1_H
#define JENKINS1_H

#include "endian.h"
#include <cstddef>

// namespace acme is used to demonstrate example code. It is not proposed.
Expand All @@ -24,6 +25,7 @@ class jenkins1
std::size_t state_ = 0;

public:
static constexpr xstd::endian endian = xstd::endian::native;
using result_type = std::size_t;

void
Expand Down

0 comments on commit 94868f0

Please sign in to comment.