Skip to content

Commit

Permalink
Fixed missing GLM_FUNC_DECL causing Cuda build errors #547
Browse files Browse the repository at this point in the history
  • Loading branch information
Groovounet committed Sep 11, 2016
1 parent c983166 commit 3422dad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
20 changes: 10 additions & 10 deletions glm/gtx/io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ namespace glm

public:

explicit basic_state_saver(std::basic_ios<CTy,CTr>&);
~basic_state_saver();
GLM_FUNC_DECL explicit basic_state_saver(std::basic_ios<CTy,CTr>&);
GLM_FUNC_DECL ~basic_state_saver();

private:

Expand All @@ -86,7 +86,7 @@ namespace glm
char_type fill_;
locale_type locale_;

basic_state_saver& operator=(basic_state_saver const&);
GLM_FUNC_DECL basic_state_saver& operator=(basic_state_saver const&);
};

typedef basic_state_saver<char> state_saver;
Expand All @@ -97,14 +97,14 @@ namespace glm
{
public:

explicit basic_format_saver(std::basic_ios<CTy,CTr>&);
~basic_format_saver();
GLM_FUNC_DECL explicit basic_format_saver(std::basic_ios<CTy,CTr>&);
GLM_FUNC_DECL ~basic_format_saver();

private:

basic_state_saver<CTy> const bss_;

basic_format_saver& operator=(basic_format_saver const&);
GLM_FUNC_DECL basic_format_saver& operator=(basic_format_saver const&);
};

typedef basic_format_saver<char> format_saver;
Expand All @@ -114,29 +114,29 @@ namespace glm
{
unsigned value;

explicit precision(unsigned);
GLM_FUNC_DECL explicit precision(unsigned);
};

struct width
{
unsigned value;

explicit width(unsigned);
GLM_FUNC_DECL explicit width(unsigned);
};

template <typename CTy>
struct delimeter
{
CTy value[3];

explicit delimeter(CTy /* left */, CTy /* right */, CTy /* separator */ = ',');
GLM_FUNC_DECL explicit delimeter(CTy /* left */, CTy /* right */, CTy /* separator */ = ',');
};

struct order
{
order_type value;

explicit order(order_type);
GLM_FUNC_DECL explicit order(order_type);
};

// functions, inlined (inline)
Expand Down
6 changes: 2 additions & 4 deletions glm/gtx/io.inl
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ namespace detail
namespace detail
{
template <typename CTy, typename CTr, template <typename, precision> class M, typename T, precision P>
GLM_FUNC_QUALIFIER std::basic_ostream<CTy, CTr>&
print_matrix_on(std::basic_ostream<CTy, CTr>& os, M<T,P> const& a)
GLM_FUNC_QUALIFIER std::basic_ostream<CTy, CTr>& print_matrix_on(std::basic_ostream<CTy, CTr>& os, M<T,P> const& a)
{
typename std::basic_ostream<CTy,CTr>::sentry const cerberus(os);

Expand Down Expand Up @@ -371,8 +370,7 @@ namespace detail
namespace detail
{
template <typename CTy, typename CTr, template <typename, precision> class M, typename T, precision P>
GLM_FUNC_QUALIFIER std::basic_ostream<CTy, CTr>&
print_matrix_pair_on(std::basic_ostream<CTy, CTr>& os, std::pair<M<T, P> const, M<T, P> const> const& a)
GLM_FUNC_QUALIFIER std::basic_ostream<CTy, CTr>& print_matrix_pair_on(std::basic_ostream<CTy, CTr>& os, std::pair<M<T, P> const, M<T, P> const> const& a)
{
typename std::basic_ostream<CTy,CTr>::sentry const cerberus(os);

Expand Down

0 comments on commit 3422dad

Please sign in to comment.