WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

friend functions c++ | Loop and Break

friend functions c++

In object-oriented programming, a friend function that is a “friend” of a given class is allowed access to private and protected data in that class that it would not normally be able to access if the data was private.

Example

#include <iostream>

class B
{
private:
	friend void privatePrint()
	{
		std::cout << "friend functions" << std::endl;
	}
};

class A
{
public:
	A()
	{
		// no need to access private part with public members of B
		privatePrint();  // direct calling
	}
};

int main()
{
	A a;
	getchar();
	return 0;
}

Output :

friend functions
Share

You may also like...