fix: VS build fixed

This commit is contained in:
Mateusz Pusz
2021-03-30 14:47:05 +02:00
parent 800dade31c
commit 8a26eaf420
3 changed files with 12 additions and 4 deletions

View File

@@ -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;

View File

@@ -32,6 +32,7 @@
// IWYU pragma: end_exports
#include <cstdint>
#include <functional>
#include <utility>
namespace units {

View File

@@ -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;