-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve compile time message on assignation failure
Consider the following simple program: ``` int main() { lager::reader<int> a; lager::reader<std::string> b = a; return 0; } ``` Compiling it will produce about many lines of compiler messages, mostly relating to template deduction failure of a shared_ptr ctor. This noisy situation is improved by the use of sfinae statements in the reader to reader ctor and cursor to reader ctor. In this case, an attempt to compile the aforementioned program will fail with about 4 lines of compiler messages directly quoting the offending line. N.B. this commit does not cover the case: ``` lager::reader<int> a = lager::with(...); ```
- Loading branch information
1 parent
2c60004
commit 6c63e7b
Showing
3 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters