We exclude these declarations from MSVC, where they don't work because
the don't interact well with the U_I18N_API import/export macros
friend class impl::NumberRangeFormatterImpl;
};
+// Explicit instantiations in source/i18n/number_fluent.cpp.
+// (MSVC treats imports/exports of explicit instantiations differently.)
+#ifndef _MSC_VER
+extern template class NumberFormatterSettings<UnlocalizedNumberFormatter>;
+extern template class NumberFormatterSettings<LocalizedNumberFormatter>;
+#endif
+
/**
* A NumberFormatter that does not yet have a locale. In order to format numbers, a locale must be specified.
*
friend class UnlocalizedNumberRangeFormatter;
};
+// Explicit instantiations in source/i18n/numrange_fluent.cpp.
+// (MSVC treats imports/exports of explicit instantiations differently.)
+#ifndef _MSC_VER
+extern template class NumberRangeFormatterSettings<UnlocalizedNumberRangeFormatter>;
+extern template class NumberRangeFormatterSettings<LocalizedNumberRangeFormatter>;
+#endif
+
/**
* A NumberRangeFormatter that does not yet have a locale. In order to format, a locale must be specified.
*