forked from mpusz/mp-units
fix: VS build fixed
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
#include <units/bits/external/hacks.h> // IWYU pragma: keep
|
||||
#include <units/generic/angle.h>
|
||||
#include <units/isq/si/energy.h>
|
||||
#include <units/isq/si/force.h>
|
||||
@@ -28,6 +29,10 @@
|
||||
#include <units/quantity_io.h>
|
||||
#include <iostream>
|
||||
|
||||
#if defined(UNITS_COMP_MSVC)
|
||||
#pragma warning( disable : 4459 ) // Disable shadowing warning.
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
using namespace units::references;
|
||||
|
@@ -32,6 +32,7 @@
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <utility>
|
||||
|
||||
namespace units {
|
||||
|
@@ -20,6 +20,12 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
#include <units/bits/external/hacks.h> // IWYU pragma: keep
|
||||
|
||||
#if defined(UNITS_COMP_MSVC)
|
||||
#pragma warning( disable : 4459 ) // Disable shadowing warning.
|
||||
#endif
|
||||
|
||||
#include <units/format.h>
|
||||
#include <units/isq/iec80000/iec80000.h>
|
||||
#include <units/isq/si/iau/iau.h>
|
||||
@@ -30,10 +36,6 @@
|
||||
#include <units/isq/si/us/us.h>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#if defined(UNITS_COMP_MSVC)
|
||||
#pragma warning( disable : 4459 ) // Disable shadowing warning.
|
||||
#endif
|
||||
|
||||
using namespace units::isq::si;
|
||||
using namespace units::isq::si::references;
|
||||
using namespace units::isq::si::international;
|
||||
|
Reference in New Issue
Block a user