Skip to content

Commit

Permalink
[#15] Compilation problems under newer Visual Studios (Part 20: Probl…
Browse files Browse the repository at this point in the history
…ems with constexpr)
  • Loading branch information
tomas-nestorovic committed Nov 28, 2022
1 parent 2dbb3a0 commit 4e00bb2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Main/src/BSDOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@


namespace MBD{
static constexpr CImage::TProperties Properties={
static const CImage::TProperties Properties={
MAKE_IMAGE_ID('B','S','D','O','S','M','B','D'), // a unique identifier
Recognize, // name
Instantiate, // instantiation function
Expand Down
2 changes: 1 addition & 1 deletion Main/src/Charting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
//nop (not applicable)
}

static constexpr POINT Origin;
static constexpr POINT Origin={0,0};

const POINT &CChartView::CXyGraphics::GetPoint(int index) const{
// returns the XY Point with the specified Index
Expand Down
2 changes: 1 addition & 1 deletion Main/src/GDOS_Boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@


namespace MGT{
static constexpr CImage::TProperties Properties={
static const CImage::TProperties Properties={
MAKE_IMAGE_ID('G','D','O','S','_','M','G','T'), // a unique identifier
Recognize, // list of recognized device names
Instantiate,// instantiation function
Expand Down
2 changes: 1 addition & 1 deletion Main/src/MDOS2_Boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@


namespace D80{
static constexpr CImage::TProperties Properties={
static const CImage::TProperties Properties={
MAKE_IMAGE_ID('M','D','O','S','_','D','x','0'), // a unique identifier
Recognize,// name
Instantiate,// instantiation function
Expand Down
2 changes: 1 addition & 1 deletion Main/src/TRDOS503_Boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@


namespace TRD{
static constexpr CImage::TProperties Properties={
static const CImage::TProperties Properties={
MAKE_IMAGE_ID('T','R','D','O','S','T','R','D'), // a unique identifier
Recognize,// name
Instantiate,// instantiation function
Expand Down

0 comments on commit 4e00bb2

Please sign in to comment.