-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updates to support Visual Studio 14 (2015) D14REL. This includes a workaround for what appears to be a regression in initializer list construction, as well as for an issue with template arithmetic during template overload resolution. - Bumped the version to 2.0.1.
- Loading branch information
1 parent
85ceb3a
commit 92aa0a4
Showing
9 changed files
with
113 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* -*- C++ -*- ------------------------------------------------------------ | ||
@@COPYRIGHT@@ | ||
*-----------------------------------------------------------------------*/ | ||
/** @file | ||
*/ | ||
|
||
#pragma once | ||
|
||
#ifndef cml_common_mpl_plus_c_h | ||
#define cml_common_mpl_plus_c_h | ||
|
||
namespace cml { | ||
|
||
/** Helper to add two integral constants. | ||
* | ||
* @note This also avoids spurious VC14 "integral constant overflow" | ||
* warnings. | ||
*/ | ||
template<int a, int b> struct plus_c { | ||
static const int value = a + b; | ||
}; | ||
|
||
} // namespace cml | ||
|
||
#endif | ||
|
||
// ------------------------------------------------------------------------- | ||
// vim:ft=cpp:sw=2 |
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
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
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