summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--include/ocl/core/option.hpp2
-rw-r--r--include/ocl/io/print.hpp4
-rw-r--r--include/ocl/net/unique_socket.hpp4
4 files changed, 9 insertions, 7 deletions
diff --git a/README.md b/README.md
index 4c9574b..7288ae4 100644
--- a/README.md
+++ b/README.md
@@ -18,12 +18,12 @@ A set of containers in C++ for developers.
### Logic Module (Option container)
```cpp
-#include <logic/opt.hpp>
+#include <logic/option.hpp>
int main(int argc, char** argv)
{
- auto opt = ocl::opt(ocl::eval_eq(50, 50)).expect("ocl::eval_eq, does not match!");
- opt = ocl::opt(ocl::eval_eq(50, 40));
+ auto opt = ocl::option(ocl::eval_eq(50, 50)).expect("ocl::eval_eq, does not match!");
+ opt = ocl::option(ocl::eval_eq(50, 40));
opt.expect("this time it doesn't.");
return EXIT_SUCCESS;
diff --git a/include/ocl/core/option.hpp b/include/ocl/core/option.hpp
index 5bae9a2..e333dd5 100644
--- a/include/ocl/core/option.hpp
+++ b/include/ocl/core/option.hpp
@@ -31,7 +31,7 @@ namespace ocl
~option() = default;
option& operator=(const option&) = default;
- option(const option&) = default;
+ option(const option&) = default;
option& expect(const char_type* input)
{
diff --git a/include/ocl/io/print.hpp b/include/ocl/io/print.hpp
index 1220cec..669dfef 100644
--- a/include/ocl/io/print.hpp
+++ b/include/ocl/io/print.hpp
@@ -22,7 +22,9 @@ namespace ocl::io
console_io_out << fmt;
}
- inline void print() noexcept {}
+ inline void print() noexcept
+ {
+ }
template <typename... Args>
inline void print(Args... fmt) noexcept
diff --git a/include/ocl/net/unique_socket.hpp b/include/ocl/net/unique_socket.hpp
index 2f8f744..b47dbac 100644
--- a/include/ocl/net/unique_socket.hpp
+++ b/include/ocl/net/unique_socket.hpp
@@ -69,8 +69,8 @@ namespace ocl::net
auto ret = ::recv(cl_, static_cast<void*>(const_cast<char*>(out)), len, 0);
unique_socket sock;
-
- sock.fd_ = cl_;
+
+ sock.fd_ = cl_;
sock.bad_ = ret > 0L;
return std::move(sock);