Browse Source

fix errors and warnings

master
Niklas Rosenstein 3 years ago
parent
commit
2983317180
Signed by: NiklasRosenstein GPG Key ID: 06D269B33D25F6C6
4 changed files with 5 additions and 5 deletions
  1. + 1
    - 1
      include/NiklasRosenstein/enumerate.hpp
  2. + 2
    - 2
      include/NiklasRosenstein/md5.hpp
  3. + 1
    - 1
      include/NiklasRosenstein/md5_impl.cpp
  4. + 1
    - 1
      include/NiklasRosenstein/typeid.hpp

+ 1
- 1
include/NiklasRosenstein/enumerate.hpp

@ -51,7 +51,7 @@ namespace niklasrosenstein {
*/
template <class Iterable>
auto enumerate(Iterable& iter) -> _enumerator<movable_iterator_wrapper<Iterable>> {
return {iterator_lvalue_wrapper<Iterable>(iter)};
return {movable_iterator_wrapper<Iterable>(iter)};
}
/**

+ 2
- 2
include/NiklasRosenstein/md5.hpp

@ -50,10 +50,10 @@ namespace niklasrosenstein {
void update(char const* str) { update(str, strlen(str)); }
void update(void const* data, size_t size);
void digest(char* buffer);
void digest(char* out_buffer);
std::string digest() { std::string r(16, 0); digest(&r[0]); return r; }
void hexdigest(char* buffer) { char dbuf[16]; digest(dbuf); tohex(buffer, dbuf, 16); }
void hexdigest(char* out_buffer) { char dbuf[16]; digest(dbuf); tohex(out_buffer, dbuf, 16); }
std::string hexdigest() { std::string r(32, 0); hexdigest(&r[0]); return r; }
private:

+ 1
- 1
include/NiklasRosenstein/md5_impl.cpp

@ -40,7 +40,7 @@
#include <string.h>
#include "md5.hpp"
using nr::md5;
using niklasrosenstein::md5;
/*
* The basic MD5 functions.

+ 1
- 1
include/NiklasRosenstein/typeid.hpp

@ -131,7 +131,7 @@ namespace niklasrosenstein {
* a type ID to a type that does not provide a `type_id` member.
*/
#define NR_TYPEID_EX(type, id) \
namespace nr { \
namespace niklasrosenstein { \
namespace detail { \
template <> struct type_id<type> { \
static int const value = (id); \

Loading…
Cancel
Save