Skip to content

Commit 20ae363

Browse files
authored
Replace EOF with char_traits (#4532)
* 📝 update customers * ♻️ replace EOF with char_traits #2755
1 parent 589641b commit 20ae363

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

docs/mkdocs/docs/home/customers.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The library is used in multiple projects, applications, operating systems, etc. The list below is not exhaustive, but
44
the result of an internet search. If you know further customers of the library, [please let me know](mailto:[email protected]).
55

6-
![](../images/customers.png)
6+
[![](../images/customers.png)](../images/customers.png)
77

88
## Space Exploration
99

@@ -70,6 +70,7 @@ the result of an internet search. If you know further customers of the library,
7070
- [**ImHex**](https://github.com/WerWolv/ImHex), a hex editor designed for reverse engineering, providing advanced features for data analysis and manipulation
7171
- [**Intel GPA Framework**](https://intel.github.io/gpasdk-doc/src/licenses.html), a suite of cross-platform tools for capturing, analyzing, and optimizing graphics applications across different APIs
7272
- [**Meta Yoga**](https://github.com/facebook/yoga), a layout engine that facilitates flexible and efficient user interface design across multiple platforms
73+
- [**MKVToolNix**](https://mkvtoolnix.download/doc/README.md), a set of tools for creating, editing, and inspecting MKV (Matroska) multimedia container files
7374
- [**NVIDIA Nsight Compute**](https://docs.nvidia.com/nsight-compute/2022.2/pdf/CopyrightAndLicenses.pdf), a performance analysis tool for CUDA applications that provides detailed insights into GPU performance metrics
7475
- [**Notepad++**](https://github.com/notepad-plus-plus/notepad-plus-plus), a free source code editor that supports various programming languages
7576
- [**OpenRGB**](https://gitlab.com/CalcProgrammer1/OpenRGB), an open source RGB lighting control that doesn't depend on manufacturer software
@@ -129,6 +130,7 @@ the result of an internet search. If you know further customers of the library,
129130

130131
- [**Arcturus HoloSuite**](https://www.datocms-assets.com/104353/1698904597-holosuite-third-party-software-credits-and-attributions-2.pdf), a software toolset for capturing, editing, and streaming volumetric video, featuring advanced compression technologies for high-quality 3D content creation
131132
- [**azul**](https://pure.tudelft.nl/ws/files/85338589/tgis.12673.pdf), a fast and efficient 3D city model viewer designed for visualizing urban environments and spatial data
133+
- [**Blender**](https://projects.blender.org/blender/blender/search?q=nlohmann), a free and open-source 3D creation suite for modeling, animation, rendering, and more
132134
- [**cpplot**](https://cpplot.readthedocs.io/en/latest/library_api/function_eigen_8h_1ac080eac0541014c5892a55e41bf785e6.html), a library for creating interactive graphs and charts in C++, which can be viewed in web browsers
133135
- [**NVIDIA Omniverse**](https://docs.omniverse.nvidia.com/composer/latest/common/product-licenses/usd-explorer/usd-explorer-2023.2.0-licenses-manifest.html), a platform for 3D content creation and collaboration that enables real-time simulations and interactive experiences across various industries
134136
- [**Pixar Renderman**](https://rmanwiki-26.pixar.com/space/REN26/19662083/Legal+Notice), a photorealistic 3D rendering software developed by Pixar, widely used in the film industry for creating high-quality visual effects and animations

docs/mkdocs/docs/images/customers.png

157 KB
Loading

include/nlohmann/detail/meta/type_traits.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
#pragma once
1010

1111
#include <limits> // numeric_limits
12+
#include <string> // char_traits
13+
#include <tuple> // tuple
1214
#include <type_traits> // false_type, is_constructible, is_integral, is_same, true_type
1315
#include <utility> // declval
14-
#include <tuple> // tuple
15-
#include <string> // char_traits
1616

1717
#include <nlohmann/detail/iterators/iterator_traits.hpp>
1818
#include <nlohmann/detail/macro_scope.hpp>
@@ -211,7 +211,7 @@ struct char_traits<unsigned char> : std::char_traits<char>
211211

212212
static constexpr int_type eof() noexcept
213213
{
214-
return static_cast<int_type>(EOF);
214+
return static_cast<int_type>(std::char_traits<char>::eof());
215215
}
216216
};
217217

@@ -235,7 +235,7 @@ struct char_traits<signed char> : std::char_traits<char>
235235

236236
static constexpr int_type eof() noexcept
237237
{
238-
return static_cast<int_type>(EOF);
238+
return static_cast<int_type>(std::char_traits<char>::eof());
239239
}
240240
};
241241

single_include/nlohmann/json.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3273,10 +3273,10 @@ NLOHMANN_JSON_NAMESPACE_END
32733273

32743274

32753275
#include <limits> // numeric_limits
3276+
#include <string> // char_traits
3277+
#include <tuple> // tuple
32763278
#include <type_traits> // false_type, is_constructible, is_integral, is_same, true_type
32773279
#include <utility> // declval
3278-
#include <tuple> // tuple
3279-
#include <string> // char_traits
32803280

32813281
// #include <nlohmann/detail/iterators/iterator_traits.hpp>
32823282
// __ _____ _____ _____
@@ -3658,7 +3658,7 @@ struct char_traits<unsigned char> : std::char_traits<char>
36583658

36593659
static constexpr int_type eof() noexcept
36603660
{
3661-
return static_cast<int_type>(EOF);
3661+
return static_cast<int_type>(std::char_traits<char>::eof());
36623662
}
36633663
};
36643664

@@ -3682,7 +3682,7 @@ struct char_traits<signed char> : std::char_traits<char>
36823682

36833683
static constexpr int_type eof() noexcept
36843684
{
3685-
return static_cast<int_type>(EOF);
3685+
return static_cast<int_type>(std::char_traits<char>::eof());
36863686
}
36873687
};
36883688

0 commit comments

Comments
 (0)