Jump to content

error: unable to "<function-style-cast>" from "nullptr" into the "time_t"


gameboy
 Share

Recommended Posts

Today, I compiled the latest code SVN20067 with VS2013, and the following error occurred:

4 error C2440: error: unable to "<function-style-cast>" from "nullptr" into the "time_t" d:\trunk\source\lobby\XmppClient.h 157 1 lobby           62 error LNK1181: error cannot open input file "..\..\..\binaries\system\lobby.lib" D:\trunk\build\workspaces\vc2013\LINK pyrogenesis           64 error LNK1181: error cannot open input file "..\..\..\binaries\system\lobby.lib" D:\trunk\build\workspaces\vc2013\LINK test

Link to comment
Share on other sites

Index: source/lobby/XmppClient.h
===================================================================
--- source/lobby/XmppClient.h	(revision 20067)
+++ source/lobby/XmppClient.h	(working copy)
@@ -154,7 +154,7 @@
 		const std::string& property1_value = "",
 		const std::string& property2_name = "",
 		const std::string& property2_value = "",
-		const std::time_t time = std::time_t(nullptr));
+		const std::time_t time = std::time(nullptr));
 
 private:
 	/// Map of players

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...