76 Commits

Author SHA1 Message Date
qPCR4vir
0309e79701 FIX using newer Boost
TODO use std::filesystem not experimental
2018-08-30 15:05:40 +02:00
Jinhao
a9f23e2503 Merge branch 'develop-c++17' into develop 2018-06-04 02:29:55 +08:00
Jinhao
c72d8e25b4 Merge branch 'feature-freebsd-posix' into develop 2018-05-08 04:52:13 +08:00
Jinhao
90b5f17169 Merge branch 'feature-keyboard-accelerator' into develop 2018-03-08 15:35:30 +08:00
Jinhao
3871715779 Merge branch 'develop' of https://github.com/Unitrunker/nana into Unitrunker-develop 2018-02-11 15:58:45 +08:00
qPCR4vir
9c1f348a80 Fix travis test/demos with gcc 4.9 and boost 1.54 2018-01-29 10:18:44 +01:00
qPCR4vir
caa61aba04 Fix travis test/demos with gcc 4.9 and boost 1.54 2018-01-29 01:35:09 +01:00
qPCR4vir
8f28ef26a0 Fix: boost enable directory_iterator C++11 range-base for statement 2018-01-29 00:38:07 +01:00
qPCR4vir
504da0c1e6 FIX: error: ‘to_utf8’ is not a member of ‘nana’ 2018-01-27 01:11:12 +01:00
unitrunker
c7434afed8 NANA_POSIX for bits common to Linux, MacOS and BSD. OSS sound as fall-back for POSIX. Cheat for detecting default browser on POSIX. 2018-01-21 23:41:52 -06:00
qPCR4vir
5f947d5ec8 convenient generic_u8string(path) as workaround Boost not having path.generic_u8string()
- a good point for http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0251r0.pdf
2017-12-03 01:57:27 +01:00
qPCR4vir
16f835e083 enable directory_iterator range-based for statements while using Boost 2017-12-03 01:55:41 +01:00
pavelxdd
7e68068c25 fix compilation with boost::filesystem
CMakeLists.txt:
---------------------------
Until now build with boost::filesystem was completely broken,
since cmake exported definitions with wrong name prefixes, and
nana always defaulted to internal filesystem implementation.

After fixing the boost definitions, a number of errors came up
due to incompatibility of boost::filesystem with nana and std
filesystems. This commit tries to fix them all.

filesystem.cpp, filesystem.hpp, filebox.cpp:
--------------------------------------------
boost::filesystem doesn't have a file_time_type, so declared
it in the filesystem.hpp header.

boost::filesystem::last_write_time has a return type std::time_t
unlike the other two implementations of this function in nana
and std, so added ifdef to convert the result to file_time_type.

fixed build on gcc-4.9, since it doesn't have a std::put_time
function, included <nana/stdc++.hpp> in that case.

boost::filesystem::file_type types have different names than
std::experimental::filesystem::file_type types, fixed it by
creating an enum class file_type with the same type names as
in std::experimental::filesystem::file_type. This fix
requires static_cast from functions results to internal file_type,
since boost file_type and std file_type a different enum classes.

changed switch to if, bacause old gcc fails on converting
enum class members to int.

stdc++.hpp:
-----------
added ifndef guards to prevent errors on multiple includes of this header.

wvl.cpp:
--------
added boost/chrono.hpp include for the cases when std::thread is not
available.

travis:
-------
added boost system, thread, chrono libs to install, they are needed
for the nana-demo to compile.
2017-11-28 06:22:17 +03:00
Jinhao
bd5e9fdc4a fix issues on different MinGW distro 2017-07-07 08:34:34 +08:00
Jinhao
2fd3aa5030 add std::clamp 2017-02-05 08:32:47 +08:00
Jinhao
1845b41019 remove filesystem_selector 2016-06-27 00:35:04 +08:00
qPCR4vir
82d999ecf2 FIX filebox in linux with fs_ext 2016-06-25 03:18:17 +02:00
qPCR4vir
4450ff9678 FIX crash in VS consistently using filesysten_ext 2016-06-24 23:48:53 +02:00
qPCR4vir
3b6718d67f using explicit namespaces 2016-06-24 14:22:04 +02:00
Jinhao
12678e47c5 Merge branch 'hotfix-1.3' into develop 2016-06-24 03:06:23 +08:00
qPCR4vir
747b301b32 typo 2016-06-23 14:29:27 +02:00
qPCR4vir
d26eed8a78 improve verbose pp 2016-06-23 14:10:11 +02:00
Ariel Vina-Rodriguez
250b73b8d4 NANA_USING_NANA_FILESYSTEM for verbose pp
#define NANA_USING_NANA_FILESYSTEM  false
#define NANA_USING_STD_FILESYSTEM   false
#define NANA_USING_BOOST_FILESYSTEM false
2016-06-22 20:48:08 +02:00
Jinhao
d04776216b std.exp.filesystem for vc2013 2016-06-21 09:30:15 +08:00
Jinhao
8ec21827a0 ignore warnings which are generated by -Weffc++ 2016-03-18 22:17:13 +08:00
Jinhao
2b5593a8ac add a check for STD_NUMERIC_CONVERSIONS_NOT_SUPPORTED 2016-03-11 23:01:24 +08:00
qPCR4vir
bd0e27deb8 Microsoft also support <experimental/filesystem> 2016-02-29 00:23:55 +01:00
git
4eef6c679a Fixed path to experimental filesystem header for GNU environments. 2016-02-27 17:55:39 -08:00
qPCR4vir
1f2a48e63e test boost fs 2016-02-27 00:14:10 +01:00
qPCR4vir
81aacd4f3c fix #include <iomanip> 2016-02-26 20:04:36 +01:00
qPCR4vir
d335f34a6c truly empty? in filesystem_ext 2016-02-26 16:47:53 +01:00
qPCR4vir
ff279652bc two pretty print functions in filesystem_ext 2016-02-26 15:24:51 +01:00
qPCR4vir
c499c351dc cleanup selection of std, boost or nana filesystem and install it in travis, with detection in cmake
todo: check namespaces and compatibility of boost filesystem
2016-02-25 19:21:29 +01:00
qPCR4vir
aad9e77804 a few more std features in filesystem 2016-02-25 19:18:40 +01:00
qPCR4vir
6d383d288d fix return local end 2016-02-19 14:43:23 +01:00
qPCR4vir
11f216434f better integration of the nana filesystem extensions and possible force to use it 2016-02-19 14:42:48 +01:00
qPCR4vir
17782a60e1 directory_only_iterator is OK now 2016-02-19 14:42:37 +01:00
qPCR4vir
9f430f7220 more standard features for filesystem 2016-02-19 14:42:22 +01:00
qPCR4vir
d8a06989f3 working on directory_only_iterator<filesystem::directory_iterator> 2016-02-19 14:41:52 +01:00
qPCR4vir
6d84be2051 working on directory_only_iterator<filesystem::directory_iterator> 2016-02-19 14:41:41 +01:00
qPCR4vir
9e686eb5d6 cleanup use of namespace filesystem 2016-02-18 10:54:14 +01:00
qPCR4vir
2806908f63 filesystem ext 2016-02-18 08:21:50 +01:00
qPCR4vir
4a0ca4f2f6 updated to filesystem_selector 2016-02-17 01:50:34 +01:00
Jinhao
5e09cf1aef add a check for support of C++11 inline namespace 2016-02-17 00:32:15 +08:00
qPCR4vir
3f8aab22cf filesystem inline v1 + generic_string 2016-02-14 05:04:24 +01:00
Jinhao
325961a277 remove utf8_cast functions 2016-01-22 00:46:10 +08:00
Jinhao
920a1fe490 fix compile errors with GCC/Clang 2016-01-20 14:40:57 +08:00
Jinhao
ece696c3b5 update filesystem and remove fs_utility 2016-01-20 01:06:16 +08:00
Jinhao
8d2ec2fbd1 update experimental::filesystem and remove file_iterator 2016-01-19 01:34:07 +08:00
Jinhao
70ecce5962 remove some useless trait classes 2016-01-06 00:23:27 +08:00