Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# cpp11 (development version)

* Fixed an issue related to `-Wdeprecated-literal-operator` (#447, @andrjohns).

# cpp11 0.5.1

* cpp11 now requires R >=4.0.0, in line with the
Expand Down
2 changes: 1 addition & 1 deletion inst/include/cpp11/R.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
namespace cpp11 {
namespace literals {

constexpr R_xlen_t operator"" _xl(unsigned long long int value) { return value; }
constexpr R_xlen_t operator""_xl(unsigned long long int value) { return value; }

} // namespace literals

Expand Down
2 changes: 1 addition & 1 deletion inst/include/cpp11/named_arg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class named_arg {

namespace literals {

inline named_arg operator"" _nm(const char* name, std::size_t) { return named_arg(name); }
inline named_arg operator""_nm(const char* name, std::size_t) { return named_arg(name); }

} // namespace literals

Expand Down
4 changes: 2 additions & 2 deletions inst/include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -2749,7 +2749,7 @@ constexpr auto operator""_a()
return {};
}
#else
constexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
constexpr auto operator""_a(const char* s, size_t) -> detail::udl_arg<char> {
return {s};
}
#endif
Expand All @@ -2764,7 +2764,7 @@ constexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
std::string message = "The answer is {}"_format(42);
\endrst
*/
constexpr auto operator"" _format(const char* s, size_t n)
constexpr auto operator""_format(const char* s, size_t n)
-> detail::udl_formatter<char> {
return {{s, n}};
}
Expand Down
Loading