mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 02:44:10 +00:00
friendlier wrt overloaded comma
[SVN r80732]
This commit is contained in:
parent
4a08e3d0bf
commit
93f6e3473b
@ -71,15 +71,14 @@ template<typename F, typename FArgs, bool HasResultType> struct tr1_result_of_im
|
||||
struct result_of_private_type {};
|
||||
|
||||
struct result_of_weird_type {
|
||||
template<typename T>
|
||||
friend result_of_weird_type operator,(T const &, result_of_weird_type);
|
||||
friend result_of_private_type operator,(result_of_private_type, result_of_weird_type);
|
||||
};
|
||||
|
||||
typedef char result_of_yes_type; // sizeof(result_of_yes_type) == 1
|
||||
typedef char (&result_of_no_type)[2]; // sizeof(result_of_no_type) == 2
|
||||
|
||||
result_of_no_type result_of_is_private_type(result_of_weird_type);
|
||||
template<typename T>
|
||||
result_of_no_type result_of_is_private_type(T const &);
|
||||
result_of_yes_type result_of_is_private_type(result_of_private_type);
|
||||
|
||||
template<typename C>
|
||||
|
Loading…
x
Reference in New Issue
Block a user