-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1673 from pragmaware/fix-1671
CXX: Fix #1671
- Loading branch information
Showing
5 changed files
with
74 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
my_function input.cpp /^void my_function()$/;" f typeref:typename:void | ||
tabs input.cpp /^struct tabs { const static long value = x; };$/;" s file: | ||
tabs input.cpp /^struct tabs<x,typename enable_if_c<(x<0)>::type> { const static long value = -x; };$/;" s file: | ||
value input.cpp /^struct tabs { const static long value = x; };$/;" m struct:tabs typeref:typename:const long file: | ||
value input.cpp /^struct tabs<x,typename enable_if_c<(x<0)>::type> { const static long value = -x; };$/;" m struct:tabs typeref:typename:const long file: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* Bug #1671 reported by davisking on 2018.01.28 */ | ||
|
||
template <long x, typename enabled=void> | ||
struct tabs { const static long value = x; }; | ||
|
||
// specialize tabs | ||
template <long x> | ||
struct tabs<x,typename enable_if_c<(x<0)>::type> { const static long value = -x; }; | ||
|
||
void my_function() | ||
{ | ||
} |
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