Mercurial > code
changeset 303:c019f194475a
MFS
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 15 Nov 2014 13:13:31 +0100 |
parents | 836903141476 (current diff) 2935e07ddb88 (diff) |
children | bae4af872cde |
files | C++/Socket.cpp C++/Socket.h C++/SocketAddress.cpp C++/SocketAddress.h C++/SocketListener.cpp C++/SocketListener.h |
diffstat | 14 files changed, 18 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/C++/Directory.cpp Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/Directory.cpp Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * Directory.cpp -- open and read directories * - * Copyright (c) 2013 David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
--- a/C++/Directory.h Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/Directory.h Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * Directory.h -- open and read directories * - * Copyright (c) 2013 David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
--- a/C++/DynLib.cpp Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/DynLib.cpp Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * DynLib.cpp -- portable shared library loader * - * Copyright (c) 2013 David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
--- a/C++/DynLib.h Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/DynLib.h Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * DynLib.h -- portable shared library loader * - * Copyright (c) 2013 David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
--- a/C++/Hash.cpp Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/Hash.cpp Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * Hash.cpp -- hash functions * - * Copyright (c) 2014 David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
--- a/C++/Hash.h Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/Hash.h Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * Hash.h -- hash functions * - * Copyright (c) 2014 David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
--- a/C++/Pack.cpp Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/Pack.cpp Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * Pack.cpp -- binary data serialization * - * Copyright (c) 2013 David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
--- a/C++/Pack.h Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/Pack.h Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * Pack.h -- binary data serialization * - * Copyright (c) 2013 David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -39,16 +39,15 @@ class Pack { private: template <typename T> - struct IsContainer - { + struct IsContainer { using Yes = char [1]; using No = char [2]; template <typename U> - static Yes &test(typename U::value_type *); + static constexpr Yes &test(typename U::value_type *); template <typename U> - static No &test(...); + static constexpr No &test(...); static constexpr const bool value = sizeof (test<T>(0)) == sizeof (Yes); }; @@ -95,7 +94,7 @@ * * The specialization must have the following function: * - * static constexpr void convert(T &value) noexcept + * static void convert(T &value) noexcept */ struct Convertible { static constexpr const bool convertible{true};
--- a/C++/Socket.cpp Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/Socket.cpp Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * Socket.cpp -- portable C++ socket wrappers * - * Copyright (c) 2013, David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
--- a/C++/Socket.h Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/Socket.h Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * Socket.h -- portable C++ socket wrappers * - * Copyright (c) 2013, David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
--- a/C++/SocketAddress.cpp Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/SocketAddress.cpp Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * SocketAddress.cpp -- socket addresses management * - * Copyright (c) 2013, David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
--- a/C++/SocketAddress.h Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/SocketAddress.h Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * SocketAddress.h -- socket addresses management * - * Copyright (c) 2013, David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
--- a/C++/SocketListener.cpp Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/SocketListener.cpp Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * SocketListener.cpp -- portable select() wrapper * - * Copyright (c) 2013, David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
--- a/C++/SocketListener.h Sat Nov 15 12:41:52 2014 +0100 +++ b/C++/SocketListener.h Sat Nov 15 13:13:31 2014 +0100 @@ -1,7 +1,7 @@ /* * SocketListener.h -- portable select() wrapper * - * Copyright (c) 2013, David Demelier <markand@malikania.fr> + * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above